diff options
author | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-08 13:25:29 +0000 |
---|---|---|
committer | abel <abel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-04-08 13:25:29 +0000 |
commit | c15d7785dce343ae10c81423099473947ecd8b94 (patch) | |
tree | e26fad5edf90e1aeb0033a2cc5dc5424c53f81bd /gcc/sched-deps.c | |
parent | e1f47fd3a5e0cc2386d383f3a99e726d60f6d893 (diff) | |
download | gcc-c15d7785dce343ae10c81423099473947ecd8b94.tar.gz |
PR rtl-optimization/48272
* sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
init_insn_reg_pressure_info. Adjust a caller.
* sched-int.h (init_insn_reg_pressure_info): Declare.
* haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
when sched-pressure is enabled.
* g++.dg/opt/pr48272.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172183 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index dcee0190490..393e651f3df 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -1991,8 +1991,8 @@ mark_insn_reg_clobber (rtx reg, const_rtx setter, void *data) } /* Set up reg pressure info related to INSN. */ -static void -setup_insn_reg_pressure_info (rtx insn) +void +init_insn_reg_pressure_info (rtx insn) { int i, len; enum reg_class cl; @@ -2774,7 +2774,7 @@ sched_analyze_insn (struct deps_desc *deps, rtx x, rtx insn) if (sched_pressure_p) { setup_insn_reg_uses (deps, insn); - setup_insn_reg_pressure_info (insn); + init_insn_reg_pressure_info (insn); } /* Add register dependencies for insn. */ |