SMS - Pass the actual schedulable rows to compute_split_row

From-SVN: r145333
This commit is contained in:
Ayal Zaks 2009-03-31 06:19:06 +00:00 committed by Revital Eres
parent b5e3caf232
commit 8de9b877e7
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-03-31 Ayal Zaks <zaks@il.ibm.com>
* modulo-sched.c (sms_schedule_by_order): Pass the actual
schedulable rows to compute_split_row.
2009-03-31 Ben Elliston <bje@au.ibm.com>
PR target/31635

View File

@ -1832,11 +1832,14 @@ sms_schedule_by_order (ddg_ptr g, int mii, int maxii, int *nodes_order)
}
num_splits++;
/* The scheduling window is exclusive of 'end'
whereas compute_split_window() expects an inclusive,
ordered range. */
if (step == 1)
split_row = compute_split_row (sched_nodes, start, end,
split_row = compute_split_row (sched_nodes, start, end - 1,
ps->ii, u_node);
else
split_row = compute_split_row (sched_nodes, end, start,
split_row = compute_split_row (sched_nodes, end + 1, start,
ps->ii, u_node);
ps_insert_empty_row (ps, split_row, sched_nodes);