diff options
author | Richard Guenther <rguenther@suse.de> | 2008-04-17 09:09:31 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-04-17 09:09:31 +0000 |
commit | ba2e189251286ceb6830a36bbbf44d20bda1e29a (patch) | |
tree | f8f7712b31bdddfc402983df7bb2949ee076e2cb /gcc/tree-vn.c | |
parent | 499928c1545bc0ff97231760e8552cb66873640b (diff) | |
download | gcc-ba2e189251286ceb6830a36bbbf44d20bda1e29a.zip gcc-ba2e189251286ceb6830a36bbbf44d20bda1e29a.tar.gz gcc-ba2e189251286ceb6830a36bbbf44d20bda1e29a.tar.bz2 |
tree-vn.c (expressions_equal_p): Do not check type equality or compatibility before calling operand_equal_p.
2008-04-17 Richard Guenther <rguenther@suse.de>
* tree-vn.c (expressions_equal_p): Do not check type
equality or compatibility before calling operand_equal_p.
* fold-const.c (operand_equal_p): Check equivalence of
integer constants before bailing out due to signedness or
precision differences.
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
spurious differences in type qualification. Ignore types
for COMPONENT_REFs at all.
* gcc.dg/tree-ssa/ssa-fre-17.c: New testcase.
From-SVN: r134384
Diffstat (limited to 'gcc/tree-vn.c')
-rw-r--r-- | gcc/tree-vn.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/tree-vn.c b/gcc/tree-vn.c index c09dfb7..40efea6 100644 --- a/gcc/tree-vn.c +++ b/gcc/tree-vn.c @@ -83,8 +83,6 @@ expressions_equal_p (tree e1, tree e2) } else if (TREE_CODE (e1) == TREE_CODE (e2) - && (te1 == te2 - || types_compatible_p (te1, te2)) && operand_equal_p (e1, e2, OEP_PURE_SAME)) return true; |