summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beloopana.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/beloopana.c
parent605f090a89439312aefdc8e01b209a6596ae9390 (diff)
be: Add and use macros to iterate only/all nodes except Phis in the schedule.
Diffstat (limited to 'ir/be/beloopana.c')
-rw-r--r--ir/be/beloopana.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index 31b568e..208c1b5 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -62,10 +62,7 @@ static unsigned be_compute_block_pressure(ir_node *const block, arch_register_cl
be_liveness_end_of_block(lv, cls, block, &live_nodes);
unsigned max_live = (unsigned)ir_nodeset_size(&live_nodes);
- sched_foreach_reverse(block, irn) {
- if (is_Phi(irn))
- break;
-
+ sched_foreach_non_phi_reverse(block, irn) {
be_liveness_transfer(cls, irn, &live_nodes);
unsigned cnt = (unsigned)ir_nodeset_size(&live_nodes);
max_live = MAX(cnt, max_live);