diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-27 17:26:17 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-27 17:26:17 +0000 |
commit | cdef8bc6d1ad756c5b7508168a95351270347b45 (patch) | |
tree | a81bbbb8510ca92a7b1d6e2ce2d7db16c619315c /gcc/tree-ssa-phiopt.c | |
parent | 31f16dff98752d15c0f430b8e1e1daa7b682a8f0 (diff) | |
download | gcc-cdef8bc6d1ad756c5b7508168a95351270347b45.tar.gz |
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-phiopt.c')
-rw-r--r-- | gcc/tree-ssa-phiopt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-phiopt.c b/gcc/tree-ssa-phiopt.c index 3c241e43fc5..b6cfa7a028c 100644 --- a/gcc/tree-ssa-phiopt.c +++ b/gcc/tree-ssa-phiopt.c @@ -450,10 +450,10 @@ value_replacement (basic_block bb, tree phi, tree arg0, tree arg1) We now need to verify that the two arguments in the PHI node match the two arguments to the equality comparison. */ - if ((operand_equal_p (arg0, TREE_OPERAND (cond, 0), 0) - && operand_equal_p (arg1, TREE_OPERAND (cond, 1), 0)) - || (operand_equal_p (arg1, TREE_OPERAND (cond, 0), 0) - && operand_equal_p (arg0, TREE_OPERAND (cond, 1), 0))) + if ((operand_equal_for_phi_arg_p (arg0, TREE_OPERAND (cond, 0)) + && operand_equal_for_phi_arg_p (arg1, TREE_OPERAND (cond, 1))) + || (operand_equal_for_phi_arg_p (arg1, TREE_OPERAND (cond, 0)) + && operand_equal_for_phi_arg_p (arg0, TREE_OPERAND (cond, 1)))) { edge e; tree arg; |