diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-01-15 21:55:24 -0500 |
---|---|---|
committer | Trevor Saunders <tsaunders@mozilla.com> | 2014-02-18 22:44:42 -0500 |
commit | 19858081cb2ea7b61a7a8196e7bc167ef4f4bbfd (patch) | |
tree | 25062b6d0c571146e444a0e73b76171de7f35dca | |
parent | 404bb48fab813744da52e9cef5673822c154eac1 (diff) | |
download | gcc-19858081cb2ea7b61a7a8196e7bc167ef4f4bbfd.tar.gz |
dse.c move bitmap to stack
-rw-r--r-- | gcc/dse.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/dse.c b/gcc/dse.c index a23dbd1f772..9e1ef4ead8d 100644 --- a/gcc/dse.c +++ b/gcc/dse.c @@ -2698,7 +2698,7 @@ static void dse_step1 (void) { basic_block bb; - bitmap regs_live = BITMAP_ALLOC (®_obstack); + bitmap_head regs_live (®_obstack); cselib_init (0); all_blocks = BITMAP_ALLOC (NULL); @@ -2712,10 +2712,10 @@ dse_step1 (void) memset (bb_info, 0, sizeof (struct bb_info)); all_blocks->set_bit (bb->index); - bb_info->regs_live = regs_live; + bb_info->regs_live = ®s_live; - bitmap_copy (regs_live, DF_LR_IN (bb)); - df_simulate_initialize_forwards (bb, regs_live); + bitmap_copy (®s_live, DF_LR_IN (bb)); + df_simulate_initialize_forwards (bb, ®s_live); bb_table[bb->index] = bb_info; cselib_discard_hook = remove_useless_values; @@ -2738,7 +2738,7 @@ dse_step1 (void) scan_insn (bb_info, insn); cselib_process_insn (insn); if (INSN_P (insn)) - df_simulate_one_insn_forwards (bb, insn, regs_live); + df_simulate_one_insn_forwards (bb, insn, ®s_live); } /* This is something of a hack, because the global algorithm @@ -2839,7 +2839,6 @@ dse_step1 (void) bb_info->regs_live = NULL; } - BITMAP_FREE (regs_live); cselib_finish (); rtx_group_table.empty (); } |