aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/tree-ssa-pre.c')
-rw-r--r--gcc-4.8/gcc/tree-ssa-pre.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/tree-ssa-pre.c b/gcc-4.8/gcc/tree-ssa-pre.c
index 10c809175..3e6a82e24 100644
--- a/gcc-4.8/gcc/tree-ssa-pre.c
+++ b/gcc-4.8/gcc/tree-ssa-pre.c
@@ -3664,6 +3664,12 @@ insert (void)
if (dump_file && dump_flags & TDF_DETAILS)
fprintf (dump_file, "Starting insert iteration %d\n", num_iterations);
new_stuff = insert_aux (ENTRY_BLOCK_PTR);
+
+ /* Clear the NEW sets before the next iteration. We have already
+ fully propagated its contents. */
+ if (new_stuff)
+ FOR_ALL_BB (bb)
+ bitmap_set_free (NEW_SETS (bb));
}
statistics_histogram_event (cfun, "insert iterations", num_iterations);
}