diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2012-10-14 19:30:59 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2012-10-14 19:30:59 +0000 |
commit | bf744527f1616d14a437abd9c8e5d16cd55b76a3 (patch) | |
tree | 3654fdb428a81ff03c682364de4dd6c378669f51 /gcc/ira-build.c | |
parent | 6e74642b2c37305436269a8c036f1519b4c8c111 (diff) | |
download | gcc-bf744527f1616d14a437abd9c8e5d16cd55b76a3.zip gcc-bf744527f1616d14a437abd9c8e5d16cd55b76a3.tar.gz gcc-bf744527f1616d14a437abd9c8e5d16cd55b76a3.tar.bz2 |
re PR rtl-optimization/38711 (ira should not be using df-lr except at -O1.)
PR rtl-optimization/38711
* df.h (df_get_live_out, df_get_live_in): Make static inline functions.
* df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
* ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
DF_LR_OUT.
* ira-build.c (create_bb_allocnos): Likewise.
(create_loop_allocnos): Likewise, and use df_get_live_in instead of
DF_LR_IN.
* ira-emit.c (generate_edge_moves): Likewise.
(add_ranges_and_copies): Likewise.
* ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
* ira.c (mark_elimination): Update DF_LR and DF_LIVE.
(build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
(do_reload): Remove the DF_LIVE problem for -O1.
From-SVN: r192440
Diffstat (limited to 'gcc/ira-build.c')
-rw-r--r-- | gcc/ira-build.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ira-build.c b/gcc/ira-build.c index cc4ff34..986bb5e 100644 --- a/gcc/ira-build.c +++ b/gcc/ira-build.c @@ -1715,7 +1715,7 @@ create_bb_allocnos (ira_loop_tree_node_t bb_node) create_insn_allocnos (PATTERN (insn), false); /* It might be a allocno living through from one subloop to another. */ - EXECUTE_IF_SET_IN_REG_SET (DF_LR_IN (bb), FIRST_PSEUDO_REGISTER, i, bi) + EXECUTE_IF_SET_IN_REG_SET (df_get_live_in (bb), FIRST_PSEUDO_REGISTER, i, bi) if (ira_curr_regno_allocno_map[i] == NULL) ira_create_allocno (i, false, ira_curr_loop_tree_node); } @@ -1731,9 +1731,9 @@ create_loop_allocnos (edge e) bitmap_iterator bi; ira_loop_tree_node_t parent; - live_in_regs = DF_LR_IN (e->dest); + live_in_regs = df_get_live_in (e->dest); border_allocnos = ira_curr_loop_tree_node->border_allocnos; - EXECUTE_IF_SET_IN_REG_SET (DF_LR_OUT (e->src), + EXECUTE_IF_SET_IN_REG_SET (df_get_live_out (e->src), FIRST_PSEUDO_REGISTER, i, bi) if (bitmap_bit_p (live_in_regs, i)) { |