aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorAndrey Belevantsev <abel@ispras.ru>2011-04-08 17:25:29 +0400
committerAndrey Belevantsev <abel@gcc.gnu.org>2011-04-08 17:25:29 +0400
commit19ac78921e8351a7b4b96c0b404d30dbbfb4f80d (patch)
treee26fad5edf90e1aeb0033a2cc5dc5424c53f81bd /gcc/haifa-sched.c
parent0f8c63cc10c27905f6d6fa553d3be08a416b2e1f (diff)
downloadgcc-19ac78921e8351a7b4b96c0b404d30dbbfb4f80d.zip
gcc-19ac78921e8351a7b4b96c0b404d30dbbfb4f80d.tar.gz
gcc-19ac78921e8351a7b4b96c0b404d30dbbfb4f80d.tar.bz2
re PR rtl-optimization/48272 (internal compiler error: in setup_insn_reg_pressure_info, at haifa-sched.c:1124)
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. From-SVN: r172183
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 30f55be..6908a11 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -5611,6 +5611,8 @@ haifa_init_insn (rtx insn)
/* Extend dependency caches by one element. */
extend_dependency_caches (1, false);
}
+ if (sched_pressure_p)
+ init_insn_reg_pressure_info (insn);
}
/* Init data for the new basic block BB which comes after AFTER. */