summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beverify.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/beverify.c
parent605f090a89439312aefdc8e01b209a6596ae9390 (diff)
be: Add and use macros to iterate only/all nodes except Phis in the schedule.
Diffstat (limited to 'ir/be/beverify.c')
-rw-r--r--ir/be/beverify.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/be/beverify.c b/ir/be/beverify.c
index 2e5a507..d655d64 100644
--- a/ir/be/beverify.c
+++ b/ir/be/beverify.c
@@ -86,10 +86,7 @@ static void verify_liveness_walker(ir_node *block, void *data)
env->problem_found = true;
}
- sched_foreach_reverse(block, irn) {
- if (is_Phi(irn))
- break;
-
+ sched_foreach_non_phi_reverse(block, irn) {
// print_living_values(stderr, &live_nodes);
be_liveness_transfer(env->cls, irn, &live_nodes);