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
This commit is contained in:
Alexander Monakov 2011-04-08 18:10:10 +04:00 committed by Alexander Monakov
parent 19ac78921e
commit 9d40778b0c
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,11 @@
2011-04-08 Alexander Monakov <amonakov@ispras.ru>
* sel-sched.c (sel_region_init): Move call to
sel_setup_region_sched_flags after setup_current_loop_nest.
2011-04-08 Andrey Belevantsev <abel@ispras.ru> 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/48272 PR rtl-optimization/48272
* sched-deps.c (setup_insn_reg_pressure_info): Export and rename to * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
init_insn_reg_pressure_info. Adjust a caller. init_insn_reg_pressure_info. Adjust a caller.
* sched-int.h (init_insn_reg_pressure_info): Declare. * sched-int.h (init_insn_reg_pressure_info): Declare.

View File

@ -6868,8 +6868,6 @@ sel_region_init (int rgn)
if (current_region_empty_p ()) if (current_region_empty_p ())
return true; return true;
sel_setup_region_sched_flags ();
bbs = VEC_alloc (basic_block, heap, current_nr_blocks); bbs = VEC_alloc (basic_block, heap, current_nr_blocks);
for (i = 0; i < current_nr_blocks; i++) for (i = 0; i < current_nr_blocks; i++)
@ -6880,6 +6878,8 @@ sel_region_init (int rgn)
if (flag_sel_sched_pipelining) if (flag_sel_sched_pipelining)
setup_current_loop_nest (rgn, &bbs); setup_current_loop_nest (rgn, &bbs);
sel_setup_region_sched_flags ();
/* Initialize luids and dependence analysis which both sel-sched and haifa /* Initialize luids and dependence analysis which both sel-sched and haifa
need. */ need. */
sched_init_luids (bbs, NULL, NULL, NULL); sched_init_luids (bbs, NULL, NULL, NULL);