aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-11-27 17:26:17 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-11-27 17:26:17 +0000
commitcdef8bc6d1ad756c5b7508168a95351270347b45 (patch)
treea81bbbb8510ca92a7b1d6e2ce2d7db16c619315c /gcc/tree-ssa-dom.c
parent31f16dff98752d15c0f430b8e1e1daa7b682a8f0 (diff)
downloadgcc-cdef8bc6d1ad756c5b7508168a95351270347b45.zip
gcc-cdef8bc6d1ad756c5b7508168a95351270347b45.tar.gz
gcc-cdef8bc6d1ad756c5b7508168a95351270347b45.tar.bz2
tree.c (operand_equal_for_phi_arg_p): New.
* tree.c (operand_equal_for_phi_arg_p): New. * tree.h: Add a prototype for operand_equal_for_phi_arg_p. * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c: Replace operand_equal_p with operand_for_phi_arg_p appropriately. From-SVN: r91385
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 5af8489..a2d1459 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -1180,7 +1180,7 @@ record_equivalences_from_phis (basic_block bb)
if (TREE_CODE (t) == SSA_NAME || is_gimple_min_invariant (t))
{
/* Ignore alternatives which are the same as our LHS. */
- if (operand_equal_p (lhs, t, 0))
+ if (operand_equal_for_phi_arg_p (lhs, t))
continue;
/* If we have not processed an alternative yet, then set
@@ -1190,7 +1190,7 @@ record_equivalences_from_phis (basic_block bb)
/* If we have processed an alternative (stored in RHS), then
see if it is equal to this one. If it isn't, then stop
the search. */
- else if (! operand_equal_p (rhs, t, 0))
+ else if (! operand_equal_for_phi_arg_p (rhs, t))
break;
}
else