tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
authorDaniel Berlin <dberlin@dberlin.org>
Tue, 15 Jul 2008 23:50:52 +0000 (23:50 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Tue, 15 Jul 2008 23:50:52 +0000 (23:50 +0000)
commit2dfb6ce12f3e9c84d406aa0bba68406eba3f0ce0
tree4faecb181c40f295369ac919f9ab5203eed115d8
parent15e38d0dce922e77304932817a10f1f42579553f
tree-ssa-sccvn.c (expressions_equal_p): Check type equality.

2008-07-15  Daniel Berlin  <dberlin@dberlin.org>

* tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
* tree-ssa-pre.c (pre_expr_eq): Ditto
(get_constant_for_value_id): Take a type as an argument.
(fully_constant_expression): Pass in type.
(find_or_generate_expression): Short circuit constant case.
(create_expression_by_pieces): Remove special casing of
pointer_plus.
(do_regular_insertion): Short circuit constant case.
(do_partial_partial_insertion): Ditto.

From-SVN: r137859
gcc/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20080704-1.c
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c