aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-12-03 07:38:39 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-12-03 07:38:39 +0000
commita18428f344e55707ac6ea630195e491677a155fe (patch)
treea742595d8b3287073662c8372dfcf433adc9568a /gcc
parent7bd3a4933029a0d65da2aa8a585cfcf7f9789516 (diff)
downloadgcc-a18428f344e55707ac6ea630195e491677a155fe.zip
gcc-a18428f344e55707ac6ea630195e491677a155fe.tar.gz
gcc-a18428f344e55707ac6ea630195e491677a155fe.tar.bz2
tree-ssa-dom.c (record_equivalences_from_phis): Remove an "if" whose condition is always true.
* tree-ssa-dom.c (record_equivalences_from_phis): Remove an "if" whose condition is always true. From-SVN: r91676
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-dom.c29
2 files changed, 17 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 42c3c20..6298db4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
+
+ * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
+ "if" whose condition is always true.
+
2004-12-02 Stan Shebs <shebs@apple.com>
* config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index a2d1459..cce0412 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -1177,23 +1177,18 @@ record_equivalences_from_phis (basic_block bb)
{
tree t = PHI_ARG_DEF (phi, i);
- if (TREE_CODE (t) == SSA_NAME || is_gimple_min_invariant (t))
- {
- /* Ignore alternatives which are the same as our LHS. */
- if (operand_equal_for_phi_arg_p (lhs, t))
- continue;
-
- /* If we have not processed an alternative yet, then set
- RHS to this alternative. */
- if (rhs == NULL)
- rhs = t;
- /* 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_for_phi_arg_p (rhs, t))
- break;
- }
- else
+ /* Ignore alternatives which are the same as our LHS. */
+ if (operand_equal_for_phi_arg_p (lhs, t))
+ continue;
+
+ /* If we have not processed an alternative yet, then set
+ RHS to this alternative. */
+ if (rhs == NULL)
+ rhs = t;
+ /* 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_for_phi_arg_p (rhs, t))
break;
}