From cc20f25249a89ac003ebaa18e91a84eae0ef2e27 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Wed, 28 Nov 2012 17:58:44 +0100 Subject: [PATCH] belower: Avoid skip_Proj() by simply not setting the sched_point to a Proj. --- ir/be/belower.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir/be/belower.c b/ir/be/belower.c index 10d1cc62a..056b02c8d 100644 --- a/ir/be/belower.c +++ b/ir/be/belower.c @@ -442,12 +442,12 @@ static void lower_perm_node(ir_node *irn, lower_env_t *env) arch_set_irn_register(res1, cycle.elems[i]); /* insert the copy/exchange node in schedule after the magic schedule node (see above) */ - sched_add_after(skip_Proj(sched_point), cpyxchg); + sched_add_after(sched_point, cpyxchg); DB((dbg, LEVEL_1, "replacing %+F with %+F, placed new node after %+F\n", irn, cpyxchg, sched_point)); /* set the new scheduling point */ - sched_point = res1; + sched_point = cpyxchg; } else { ir_node *cpyxchg; @@ -461,7 +461,7 @@ static void lower_perm_node(ir_node *irn, lower_env_t *env) exchange(res2, cpyxchg); /* insert the copy/exchange node in schedule after the magic schedule node (see above) */ - sched_add_after(skip_Proj(sched_point), cpyxchg); + sched_add_after(sched_point, cpyxchg); /* set the new scheduling point */ sched_point = cpyxchg; -- 2.20.1