summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepeephole.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-07 03:04:54 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-07 14:33:19 +0200
commit2f0eeca3751e8628584a6a51c40c4a71b6051c37 (patch)
tree144955a169e33dbbe03e144200679ae859a5a48c /ir/be/bepeephole.c
parent605f090a89439312aefdc8e01b209a6596ae9390 (diff)
be: Add and use macros to iterate only/all nodes except Phis in the schedule.
Diffstat (limited to 'ir/be/bepeephole.c')
-rw-r--r--ir/be/bepeephole.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/bepeephole.c b/ir/be/bepeephole.c
index c9acc60..9373a8a 100644
--- a/ir/be/bepeephole.c
+++ b/ir/be/bepeephole.c
@@ -315,9 +315,7 @@ bool be_can_move_up(ir_heights_t *heights, const ir_node *node,
return false;
}
}
- sched_foreach(succ, phi) {
- if (!is_Phi(phi))
- break;
+ sched_foreach_phi(succ, phi) {
const arch_register_t *reg = arch_get_irn_register(phi);
const arch_register_req_t *req = arch_get_irn_register_req(phi);
be_foreach_out(node, o) {