summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-11 16:01:37 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-04-11 16:01:37 +0000
commitbf87f939a08c7f3da7006a03cd2a05e57c6f0576 (patch)
treed08057c3cde1b8840f949bacf4fc0c1f9df3692c
parent5b9e810516c5991feb2b190e3a559a5c1b986011 (diff)
downloadppe42-gcc-bf87f939a08c7f3da7006a03cd2a05e57c6f0576.tar.gz
ppe42-gcc-bf87f939a08c7f3da7006a03cd2a05e57c6f0576.zip
* tree-vrp.c (maybe_add_assert_expr): Move a comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97973 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-vrp.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c165e227ca8..8663256a5c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-11 Kazu Hirata <kazu@cs.umass.edu>
+
+ * tree-vrp.c (maybe_add_assert_expr): Move a comment.
+
2005-04-11 Diego Novillo <dnovillo@redhat.com>
PR tree-optimization/20920
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 3e366d2dc0f..9d649b77f48 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -1503,11 +1503,6 @@ maybe_add_assert_expr (basic_block bb)
cond = COND_EXPR_COND (last);
- /* Remove the COND_EXPR operand from the FOUND bitmap.
- Otherwise, when we finish traversing each of the sub-graphs,
- we won't know whether the variables were found in the
- sub-graphs or if they had been found in a block upstream from
- BB. */
op = USE_OP (uses, 0);
/* Do not attempt to infer anything in names that flow through
@@ -1515,6 +1510,11 @@ maybe_add_assert_expr (basic_block bb)
if (SSA_NAME_OCCURS_IN_ABNORMAL_PHI (op))
return false;
+ /* Remove the COND_EXPR operand from the FOUND bitmap.
+ Otherwise, when we finish traversing each of the sub-graphs,
+ we won't know whether the variables were found in the
+ sub-graphs or if they had been found in a block upstream from
+ BB. */
RESET_BIT (found, SSA_NAME_VERSION (op));
/* Look for uses of the operands in each of the sub-graphs
OpenPOWER on IntegriCloud