===================================================================
@@ -924,6 +924,7 @@ sms_schedule (void)
basic_block condition_bb = NULL;
edge latch_edge;
gcov_type trip_count = 0;
+ int temp;
loop_optimizer_init (LOOPS_HAVE_PREHEADERS
| LOOPS_HAVE_RECORDED_EXITS);
@@ -933,22 +934,19 @@ sms_schedule (void)
return; /* There are no loops to schedule. */
}
+ temp = reload_completed;
+ reload_completed = 1;
/* Initialize issue_rate. */
if (targetm.sched.issue_rate)
- {
- int temp = reload_completed;
-
- reload_completed = 1;
- issue_rate = targetm.sched.issue_rate ();
- reload_completed = temp;
- }
+ issue_rate = targetm.sched.issue_rate ();
else
issue_rate = 1;
-
+
/* Initialize the scheduler. */
setup_sched_infos ();
haifa_sched_init ();
-
+ reload_completed = temp;
+
/* Allocate memory to hold the DDG array one entry for each loop.
We use loop->num as index into this array. */
g_arr = XCNEWVEC (ddg_ptr, number_of_loops ());