summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.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/bestate.c
parent605f090a89439312aefdc8e01b209a6596ae9390 (diff)
be: Add and use macros to iterate only/all nodes except Phis in the schedule.
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index 1f8a8a9..ec926b8 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -212,9 +212,7 @@ static block_info_t *compute_block_start_state(minibelady_env_t *env,
bool outer_loop_allowed = true;
/* check all Phis first */
- sched_foreach(block, node) {
- if (!is_Phi(node))
- break;
+ sched_foreach_phi(block, node) {
if (arch_get_irn_register(node) != env->reg)
continue;
@@ -327,10 +325,8 @@ static void belady(minibelady_env_t *env, ir_node *block)
/* process the block from start to end */
DBG((dbg, LEVEL_3, "Processing...\n"));
- sched_foreach(block, node) {
+ sched_foreach_non_phi(block, node) {
/* Phis are no real instr (see insert_starters()) */
- if (is_Phi(node))
- continue;
/* check which state is desired for the node */
ir_node *need_val = NULL;