From 9d40778b0c1b175d5d85fe37de1fb9f90006415f Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Fri, 8 Apr 2011 18:10:10 +0400 Subject: [PATCH] sel-sched.c (sel_region_init): Move call to sel_setup_region_sched_flags after setup_current_loop_nest. * sel-sched.c (sel_region_init): Move call to sel_setup_region_sched_flags after setup_current_loop_nest. From-SVN: r172185 --- gcc/ChangeLog | 6 +++++- gcc/sel-sched.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 107f79bf2ff..3d5e486e3bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,11 @@ +2011-04-08 Alexander Monakov + + * sel-sched.c (sel_region_init): Move call to + sel_setup_region_sched_flags after setup_current_loop_nest. + 2011-04-08 Andrey Belevantsev 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. diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index f409c4fa2cc..e298208ddb5 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -6868,8 +6868,6 @@ sel_region_init (int rgn) if (current_region_empty_p ()) return true; - sel_setup_region_sched_flags (); - bbs = VEC_alloc (basic_block, heap, current_nr_blocks); for (i = 0; i < current_nr_blocks; i++) @@ -6880,6 +6878,8 @@ sel_region_init (int rgn) if (flag_sel_sched_pipelining) setup_current_loop_nest (rgn, &bbs); + sel_setup_region_sched_flags (); + /* Initialize luids and dependence analysis which both sel-sched and haifa need. */ sched_init_luids (bbs, NULL, NULL, NULL); -- 2.30.2