diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2017-05-14 00:38:48 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2017-05-14 00:38:48 +0000 |
commit | 0e3de1d41eb6179eac75c8ae44c16c1ba1d2f5dd (patch) | |
tree | 6de1ecd2f719b8ec208ed45a232c64387837fa79 /gcc/bt-load.c | |
parent | 792bb49bb0732500fe4e87fbeae4aee3cb187112 (diff) | |
download | gcc-0e3de1d41eb6179eac75c8ae44c16c1ba1d2f5dd.zip gcc-0e3de1d41eb6179eac75c8ae44c16c1ba1d2f5dd.tar.gz gcc-0e3de1d41eb6179eac75c8ae44c16c1ba1d2f5dd.tar.bz2 |
use auto_bitmap more
gcc/ChangeLog:
2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
lifetime.
(migrate_btr_def): Likewise.
* cfgloop.c (get_loop_body_in_bfs_order): Likewise.
* df-core.c (loop_post_order_compute): Likewise.
(loop_inverted_post_order_compute): Likewise.
* hsa-common.h: Likewise.
* hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
* init-regs.c (initialize_uninitialized_regs): Likewise.
* ipa-inline.c (resolve_noninline_speculation): Likewise.
(inline_small_functions): Likewise.
* ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
* ira.c (combine_and_move_insns): Likewise.
(build_insn_chain): Likewise.
* loop-invariant.c (find_invariants): Likewise.
* lower-subreg.c (propagate_pseudo_copies): Likewise.
* predict.c (tree_predict_by_opcode): Likewise.
(predict_paths_leading_to): Likewise.
(predict_paths_leading_to_edge): Likewise.
(estimate_loops_at_level): Likewise.
(estimate_loops): Likewise.
* shrink-wrap.c (try_shrink_wrapping): Likewise.
(spread_components): Likewise.
* tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
* tree-loop-distribution.c (rdg_build_partitions): Likewise.
* tree-predcom.c (tree_predictive_commoning_loop): Likewise.
* tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
* tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
* tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
* tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
* tree-ssa-threadupdate.c (compute_path_counts): Likewise.
(mark_threaded_blocks): Likewise.
(thread_through_all_blocks): Likewise.
* tree-ssa.c (verify_ssa): Likewise.
(execute_update_addresses_taken): Likewise.
* tree-ssanames.c (verify_ssaname_freelists): Likewise.
From-SVN: r248021
Diffstat (limited to 'gcc/bt-load.c')
-rw-r--r-- | gcc/bt-load.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/bt-load.c b/gcc/bt-load.c index 27be6a3..32924e2 100644 --- a/gcc/bt-load.c +++ b/gcc/bt-load.c @@ -1058,7 +1058,7 @@ combine_btr_defs (btr_def *def, HARD_REG_SET *btrs_live_in_range) target registers live over the merged range. */ int btr; HARD_REG_SET combined_btrs_live; - bitmap combined_live_range = BITMAP_ALLOC (NULL); + auto_bitmap combined_live_range; btr_user *user; if (other_def->live_range == NULL) @@ -1116,7 +1116,6 @@ combine_btr_defs (btr_def *def, HARD_REG_SET *btrs_live_in_range) delete_insn (other_def->insn); } - BITMAP_FREE (combined_live_range); } } } @@ -1255,7 +1254,6 @@ can_move_up (const_basic_block bb, const rtx_insn *insn, int n_insns) static int migrate_btr_def (btr_def *def, int min_cost) { - bitmap live_range; HARD_REG_SET btrs_live_in_range; int btr_used_near_def = 0; int def_basic_block_freq; @@ -1289,7 +1287,7 @@ migrate_btr_def (btr_def *def, int min_cost) } btr_def_live_range (def, &btrs_live_in_range); - live_range = BITMAP_ALLOC (NULL); + auto_bitmap live_range; bitmap_copy (live_range, def->live_range); #ifdef INSN_SCHEDULING @@ -1373,7 +1371,7 @@ migrate_btr_def (btr_def *def, int min_cost) if (dump_file) fprintf (dump_file, "failed to move\n"); } - BITMAP_FREE (live_range); + return !give_up; } |