diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9f3f0ee7ef7..622b95f1e04 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 2fb4710d86a..0a4fb6ddc10 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])) {