From c9f77b306633fc7c9f96e8f1236634ded8871ace Mon Sep 17 00:00:00 2001 From: mmitchel Date: Fri, 2 Jan 2009 18:04:28 +0000 Subject: [PATCH] PR 33649 * tree-ssa-pre.c (compute_antic): Correct loop bounds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143014 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-pre.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f3f0ee..622b95f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-01-02 Mark Mitchell + + PR 33649 + * tree-ssa-pre.c (compute_antic): Correct loop bounds. + 2009-01-02 Jakub Jelinek PR middle-end/38690 diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 2fb4710..0a4fb6d 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -2394,7 +2394,7 @@ compute_antic (void) fprintf (dump_file, "Starting iteration %d\n", num_iterations); num_iterations++; changed = false; - for (i = 0; i < last_basic_block - NUM_FIXED_BLOCKS; i++) + for (i = 0; i < n_basic_blocks - NUM_FIXED_BLOCKS; i++) { if (TEST_BIT (changed_blocks, postorder[i])) { @@ -2425,7 +2425,7 @@ compute_antic (void) fprintf (dump_file, "Starting iteration %d\n", num_iterations); num_iterations++; changed = false; - for (i = 0; i < last_basic_block - NUM_FIXED_BLOCKS; i++) + for (i = 0; i < n_basic_blocks - NUM_FIXED_BLOCKS; i++) { if (TEST_BIT (changed_blocks, postorder[i])) { -- 2.7.4