This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Remove pointless global var
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Giuliano Belinassi <giuliano dot belinassi at usp dot br>
- Date: Thu, 1 Aug 2019 13:36:08 +0200 (CEST)
- Subject: Remove pointless global var
Bootstrapped on x86_64-unknown-linux-gnu, applied.
Richard.
2019-08-01 Richard Biener <rguenther@suse.de>
* tree-ssa-pre.c (has_abnormal_preds): Remove global var.
(compute_antic): Localize it here.
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 61b448933f0..d46ddf0a523 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -2012,8 +2012,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
@@ -2351,7 +2349,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)
@@ -2435,8 +2433,6 @@ compute_antic (void)
block->index));
}
}
-
- sbitmap_free (has_abnormal_preds);
}