Commit cc20f252 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

belower: Avoid skip_Proj() by simply not setting the sched_point to a Proj.

parent 0f758eda
......@@ -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;
......
Supports Markdown
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