From 8de9b877e7853c725c1a9cc4dc5e18c39debf41d Mon Sep 17 00:00:00 2001 From: Ayal Zaks Date: Tue, 31 Mar 2009 06:19:06 +0000 Subject: SMS - Pass the actual schedulable rows to compute_split_row From-SVN: r145333 --- gcc/modulo-sched.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc/modulo-sched.c') diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 7134bfc..bd49f9f 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -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); -- cgit v1.1