diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-13 17:31:30 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-13 17:31:30 +0000 |
commit | 3dd775fb895cffb77ac74098a74e9fca28edaf79 (patch) | |
tree | f68062e9cfe09046337dc976767a5f7938462868 /gcc/tree-ssa-pre.c | |
parent | 84014c53e113ab540befd1eceb8598d28a323ab3 (diff) | |
parent | 34a5d2a56d4b0a0ea74339c985c919aabfc530a4 (diff) | |
download | gcc-3dd775fb895cffb77ac74098a74e9fca28edaf79.tar.gz |
Merge in trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/wide-int@205966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r-- | gcc/tree-ssa-pre.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index ff616f36a32..21ef98c4695 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -2208,7 +2208,6 @@ compute_antic_aux (basic_block block, bool block_has_abnormal_pred_edge) BB_VISITED (block) = 0; BB_DEFERRED (block) = 1; changed = true; - worklist.release (); goto maybe_dump_sets; } @@ -2442,10 +2441,10 @@ compute_antic (void) /* If any predecessor edges are abnormal, we punt, so antic_in is empty. We pre-build the map of blocks with incoming abnormal edges here. */ - has_abnormal_preds = sbitmap_alloc (last_basic_block); + has_abnormal_preds = sbitmap_alloc (last_basic_block_for_fn (cfun)); bitmap_clear (has_abnormal_preds); - FOR_ALL_BB (block) + FOR_ALL_BB_FN (block, cfun) { edge_iterator ei; edge e; @@ -2471,7 +2470,7 @@ compute_antic (void) /* At the exit block we anticipate nothing. */ BB_VISITED (EXIT_BLOCK_PTR_FOR_FN (cfun)) = 1; - changed_blocks = sbitmap_alloc (last_basic_block + 1); + changed_blocks = sbitmap_alloc (last_basic_block_for_fn (cfun) + 1); bitmap_ones (changed_blocks); while (changed) { @@ -2487,7 +2486,7 @@ compute_antic (void) { if (bitmap_bit_p (changed_blocks, postorder[i])) { - basic_block block = BASIC_BLOCK (postorder[i]); + basic_block block = BASIC_BLOCK_FOR_FN (cfun, postorder[i]); changed |= compute_antic_aux (block, bitmap_bit_p (has_abnormal_preds, block->index)); @@ -2516,7 +2515,7 @@ compute_antic (void) { if (bitmap_bit_p (changed_blocks, postorder[i])) { - basic_block block = BASIC_BLOCK (postorder[i]); + basic_block block = BASIC_BLOCK_FOR_FN (cfun, postorder[i]); changed |= compute_partial_antic_aux (block, bitmap_bit_p (has_abnormal_preds, @@ -3660,7 +3659,7 @@ insert (void) basic_block bb; int num_iterations = 0; - FOR_ALL_BB (bb) + FOR_ALL_BB_FN (bb, cfun) NEW_SETS (bb) = bitmap_set_new (); while (new_stuff) @@ -3673,7 +3672,7 @@ insert (void) /* Clear the NEW sets before the next iteration. We have already fully propagated its contents. */ if (new_stuff) - FOR_ALL_BB (bb) + FOR_ALL_BB_FN (bb, cfun) bitmap_set_free (NEW_SETS (bb)); } statistics_histogram_event (cfun, "insert iterations", num_iterations); @@ -4672,7 +4671,7 @@ init_pre (void) sizeof (struct bitmap_set), 30); pre_expr_pool = create_alloc_pool ("pre_expr nodes", sizeof (struct pre_expr_d), 30); - FOR_ALL_BB (bb) + FOR_ALL_BB_FN (bb, cfun) { EXP_GEN (bb) = bitmap_set_new (); PHI_GEN (bb) = bitmap_set_new (); |