re PR target/35659 (Miscompiled code with -O2 (but not with -O2 -funroll-loops) on...
commit851691140a53104db9e2b1135f923618299fd92b
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 6 Feb 2009 07:33:05 +0000 (6 07:33 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Fri, 6 Feb 2009 07:33:05 +0000 (6 07:33 +0000)
tree0a8d158aa9cc33fc558acdf02d5f054a85411376
parentfe960d925789ffd66c24c3b2debf9c240d80eb24
re PR target/35659 (Miscompiled code with -O2 (but not with -O2 -funroll-loops) on ia64)

2009-02-06  Paolo Bonzini  <bonzini@gnu.org>

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.

From-SVN: r143980
gcc/ChangeLog
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c