Commit 8de9b877 by Ayal Zaks Committed by Revital Eres

SMS - Pass the actual schedulable rows to compute_split_row

From-SVN: r145333
parent b5e3caf2
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> 2009-03-31 Ben Elliston <bje@au.ibm.com>
PR target/31635 PR target/31635
......
...@@ -1832,11 +1832,14 @@ sms_schedule_by_order (ddg_ptr g, int mii, int maxii, int *nodes_order) ...@@ -1832,11 +1832,14 @@ sms_schedule_by_order (ddg_ptr g, int mii, int maxii, int *nodes_order)
} }
num_splits++; num_splits++;
/* The scheduling window is exclusive of 'end'
whereas compute_split_window() expects an inclusive,
ordered range. */
if (step == 1) 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); ps->ii, u_node);
else 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->ii, u_node);
ps_insert_empty_row (ps, split_row, sched_nodes); ps_insert_empty_row (ps, split_row, sched_nodes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment