sel-sched.c (sel_region_init): Move call to sel_setup_region_sched_flags after setup_...
authorAlexander Monakov <amonakov@ispras.ru>
Fri, 8 Apr 2011 14:10:10 +0000 (18:10 +0400)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Fri, 8 Apr 2011 14:10:10 +0000 (18:10 +0400)
* sel-sched.c (sel_region_init): Move call to
sel_setup_region_sched_flags after setup_current_loop_nest.

From-SVN: r172185

gcc/ChangeLog
gcc/sel-sched.c

index 107f79bf2ff61155533814b364066f4caf9fa949..3d5e486e3bd641fe75292bf6f9b5969faa3384ba 100644 (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>
 
        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.
index f409c4fa2ccb14acf48a493144910a0a0bfc681c..e298208ddb573e10a371980a417860ec22fa4c14 100644 (file)
@@ -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);