Account for prologue spills in reg_pressure scheduling
authorMaxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
Fri, 24 Oct 2014 08:22:12 +0000 (08:22 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Fri, 24 Oct 2014 08:22:12 +0000 (08:22 +0000)
commit4dd9ac6c94f64333ae505dc6d1e76729ccb98bea
treecf083b72295dba3eccd3df751f1c531a3ae754ae
parentef1ea28c3ce49265644432679fddf777b0176df6
Account for prologue spills in reg_pressure scheduling

* haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
(print_curr_reg_pressure, setup_insn_reg_pressure_info,)
(model_update_pressure, model_spill_cost): Use sched_class_regs_num.
(model_start_schedule): Update.
(sched_pressure_start_bb): New static function.  Calculate
sched_class_regs_num.
(schedule_block): Use it.
(alloc_global_sched_pressure_data): Calculate call_used_regs_num.

From-SVN: r216620
gcc/ChangeLog
gcc/haifa-sched.c