summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepbqpcoloring.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 14:15:39 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 14:15:39 +0100
commit7081067d3b4017a9171d997ee677e03804209965 (patch)
treee0a2146fc600070862da2a46f8c3b570692a3c75 /ir/be/bepbqpcoloring.c
parent82b5486068c6a35c1f7e5e1e659de17d2be85e19 (diff)
beinsn: Remove the attribute next_insn from struct be_insn_t.
Just use sched_next().
Diffstat (limited to 'ir/be/bepbqpcoloring.c')
-rw-r--r--ir/be/bepbqpcoloring.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ir/be/bepbqpcoloring.c b/ir/be/bepbqpcoloring.c
index c0f5a78..b5ddcae 100644
--- a/ir/be/bepbqpcoloring.c
+++ b/ir/be/bepbqpcoloring.c
@@ -595,13 +595,12 @@ static void insert_perms(ir_node *block, void *data)
ir_node *irn;
for (irn = sched_first(block); !sched_is_end(irn);) {
- be_insn_t *insn = be_scan_insn(env, irn);
- irn = insn->next_insn;
+ ir_node *const next = sched_next(irn);
+ be_insn_t * insn = be_scan_insn(env, irn);
+ if (insn->has_constraints)
+ pre_process_constraints(env, &insn);
- if (!insn->has_constraints)
- continue;
-
- pre_process_constraints(env, &insn);
+ irn = next;
}
}