summaryrefslogtreecommitdiff
path: root/gcc/modulo-sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/modulo-sched.c')
-rw-r--r--gcc/modulo-sched.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c
index db76095fb65..60b39f81d18 100644
--- a/gcc/modulo-sched.c
+++ b/gcc/modulo-sched.c
@@ -2006,9 +2006,7 @@ get_sched_window (partial_schedule_ptr ps, ddg_node_ptr u_node,
node close to its successors. */
if (pss_not_empty && count_succs >= count_preds)
{
- int tmp = end;
- end = start;
- start = tmp;
+ std::swap (start, end);
step = -1;
}