aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-08-01 11:37:22 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-08-01 11:37:22 +0000
commit95bbf4751ba789deefd2508b3357644a99db4e11 (patch)
tree293d799343987a5e4d23f0ee317a7ff70969d188 /gcc
parent6e42c90c06d75eff377f170ac31ea346b9eeb0c3 (diff)
downloadgcc-95bbf4751ba789deefd2508b3357644a99db4e11.zip
gcc-95bbf4751ba789deefd2508b3357644a99db4e11.tar.gz
gcc-95bbf4751ba789deefd2508b3357644a99db4e11.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-pre.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ec13629..8d819a0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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>
* common/config/riscv/riscv-common.c: Check -march string ends
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 36da4c6a..c618601 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -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.
If succs(BLOCK) > 1 then
@@ -2352,7 +2350,7 @@ 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_for_fn (cfun));
+ auto_sbitmap has_abnormal_preds (last_basic_block_for_fn (cfun));
bitmap_clear (has_abnormal_preds);
FOR_ALL_BB_FN (block, cfun)
@@ -2436,8 +2434,6 @@ compute_antic (void)
block->index));
}
}
-
- sbitmap_free (has_abnormal_preds);
}