aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-ebb.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-12-06 11:32:52 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-12-06 11:32:52 +0000
commitc0d105c63d97a76ac9847b82cc658b330961182d (patch)
treebbd5798495f8197c79c8198fc04baab67c83d0bf /gcc/sched-ebb.c
parent1c252ef3cbf964ce6022e5431de7f264a929a100 (diff)
downloadgcc-c0d105c63d97a76ac9847b82cc658b330961182d.zip
gcc-c0d105c63d97a76ac9847b82cc658b330961182d.tar.gz
gcc-c0d105c63d97a76ac9847b82cc658b330961182d.tar.bz2
df-problems.c (df_rd_local_compute): Use bitmap_release.
2018-12-06 Richard Biener <rguenther@suse.de> * df-problems.c (df_rd_local_compute): Use bitmap_release. (df_live_free): Likewise. (df_md_local_compute): Likewise. (df_md_free): Release df_md_scratch bitmap. * loop-invariant.c (calculate_loop_reg_pressure): Use bitmap_release. * sched-deps.c (true_dependency_cache, output_dependency_cache, anti_dependency_cache, control_dependency_cache, spec_dependency_cache): Use bitmap instead of bitmap_head *. * sched-ebb.c (schedule_ebbs_init): Initialize non-GTY dont_calc_deps as bitmap allocated from obstack not GC. (schedule_ebbs_finish): Use bitmap_release. * sched-rgn.c (schedule_insns): Initialize non-GTY not_in_df as bitmap allocated from obstack not GC. Use bitmap_release. * sel-sched.c (_forced_ebb_heads): Remove premature optimization. (sel_region_init): Allocate forced_ebb_heads. (sel_region_finish): Free forced_ebb_heads. From-SVN: r266851
Diffstat (limited to 'gcc/sched-ebb.c')
-rw-r--r--gcc/sched-ebb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/sched-ebb.c b/gcc/sched-ebb.c
index c3be0e3..49ae286 100644
--- a/gcc/sched-ebb.c
+++ b/gcc/sched-ebb.c
@@ -588,15 +588,14 @@ schedule_ebbs_init (void)
compute_bb_for_insn ();
/* Initialize DONT_CALC_DEPS and ebb-{start, end} markers. */
- bitmap_initialize (&dont_calc_deps, 0);
- bitmap_clear (&dont_calc_deps);
+ bitmap_initialize (&dont_calc_deps, &bitmap_default_obstack);
}
/* Perform cleanups after scheduling using schedules_ebbs or schedule_ebb. */
void
schedule_ebbs_finish (void)
{
- bitmap_clear (&dont_calc_deps);
+ bitmap_release (&dont_calc_deps);
/* Reposition the prologue and epilogue notes in case we moved the
prologue/epilogue insns. */