aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2000-11-21 21:00:20 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2000-11-21 16:00:20 -0500
commitd1cc928a7bddcc912ebe61a0b4f73e7ffe277bc6 (patch)
tree09265f8e12ceb8308d2d8b2bab6e019e59a5355c /gcc
parent819004bbd0fa807b93a7caeef206517d9259b65f (diff)
downloadgcc-d1cc928a7bddcc912ebe61a0b4f73e7ffe277bc6.zip
gcc-d1cc928a7bddcc912ebe61a0b4f73e7ffe277bc6.tar.gz
gcc-d1cc928a7bddcc912ebe61a0b4f73e7ffe277bc6.tar.bz2
gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as visited before visiting it.
2000-11-21 Diego Novillo <dnovillo@redhat.com> * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as visited before visiting it. From-SVN: r37627
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcse.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a3fc10a..b2aaad7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-21 Diego Novillo <dnovillo@redhat.com>
+
+ * gcse.c (hoist_expr_reaches_here_p): Do not mark expr_bb as
+ visited before visiting it.
+
2000-11-21 Nick Clifton <nickc@redhat.com>
* config/arm/arm.h: Accept TARGET_CPU_arm9tdmi,
diff --git a/gcc/gcse.c b/gcc/gcse.c
index ac87c93..25736df 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -5327,7 +5327,6 @@ hoist_expr_reaches_here_p (expr_bb, expr_index, bb, visited)
visited = xcalloc (n_basic_blocks, 1);
}
- visited[expr_bb] = 1;
for (pred = BASIC_BLOCK (bb)->pred; pred != NULL; pred = pred->pred_next)
{
int pred_bb = pred->src->index;