Commit 95bbf475 by Richard Biener Committed by Richard Biener

tree-ssa-pre.c (has_abnormal_preds): Remove global var.

2019-08-01  Richard Biener  <rguenther@suse.de>

	* tree-ssa-pre.c (has_abnormal_preds): Remove global var.
	(compute_antic): Localize it here.

From-SVN: r273971
parent 6e42c90c
2019-08-01 Richard Biener <rguenther@suse.de>
* tree-ssa-pre.c (has_abnormal_preds): Remove global var.
(compute_antic): Localize it here.
2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com> 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
* common/config/riscv/riscv-common.c: Check -march string ends * common/config/riscv/riscv-common.c: Check -march string ends
......
...@@ -2013,8 +2013,6 @@ prune_clobbered_mems (bitmap_set_t set, basic_block block) ...@@ -2013,8 +2013,6 @@ prune_clobbered_mems (bitmap_set_t set, basic_block block)
} }
} }
static sbitmap has_abnormal_preds;
/* Compute the ANTIC set for BLOCK. /* Compute the ANTIC set for BLOCK.
If succs(BLOCK) > 1 then If succs(BLOCK) > 1 then
...@@ -2352,7 +2350,7 @@ compute_antic (void) ...@@ -2352,7 +2350,7 @@ compute_antic (void)
/* If any predecessor edges are abnormal, we punt, so antic_in is empty. /* 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. */ We pre-build the map of blocks with incoming abnormal edges here. */
has_abnormal_preds = sbitmap_alloc (last_basic_block_for_fn (cfun)); auto_sbitmap has_abnormal_preds (last_basic_block_for_fn (cfun));
bitmap_clear (has_abnormal_preds); bitmap_clear (has_abnormal_preds);
FOR_ALL_BB_FN (block, cfun) FOR_ALL_BB_FN (block, cfun)
...@@ -2436,8 +2434,6 @@ compute_antic (void) ...@@ -2436,8 +2434,6 @@ compute_antic (void)
block->index)); block->index));
} }
} }
sbitmap_free (has_abnormal_preds);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment