From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19421 invoked by alias); 6 Feb 2009 07:33:49 -0000 Received: (qmail 19332 invoked by alias); 6 Feb 2009 07:33:22 -0000 Date: Fri, 06 Feb 2009 07:33:00 -0000 Message-ID: <20090206073322.19331.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/35659] [4.3/4.4 Regression] Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bonzini at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg00534.txt.bz2 ------- Comment #28 from bonzini at gnu dot org 2009-02-06 07:33 ------- Subject: Bug 35659 Author: bonzini Date: Fri Feb 6 07:33:05 2009 New Revision: 143980 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143980 Log: 2009-02-06 Paolo Bonzini PR tree-optimization/35659 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq vn_phi_eq): Shortcut if hashcode does not match. (vn_reference_op_compute_hash): Do not call iterative_hash_expr for NULL operands. * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available, and avoid iterative_hash_expr. (FOR_EACH_VALUE_ID_IN_SET): New. (value_id_compare): Remove. (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to sort expressions by value id. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-pre.c trunk/gcc/tree-ssa-sccvn.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35659