summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 12:57:48 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 13:45:22 +0100
commit17f1b65472a9207091653b40a081c974067e8bf0 (patch)
treed2d83df0ecf1ff965ce189183596b14d29490119 /ir/be/bestate.c
parent58e07445ee5c9c92a4ca4230e84b90f34bdd99b1 (diff)
besched: Add be_move_after_schedule_first() to place nodes after schedule_first nodes.
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index 49185da..e281b6f 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -110,11 +110,7 @@ static spill_info_t *create_spill(minibelady_env_t *env, ir_node *state,
ir_node *after;
if (sched_is_scheduled(state)) {
- ir_node *next = state;
- do {
- after = next;
- next = sched_next(after);
- } while (is_Phi(next) || be_is_Keep(next));
+ after = be_move_after_schedule_first(state);
} else {
after = state;
}