summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beuses.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/beuses.c
parent605f090a89439312aefdc8e01b209a6596ae9390 (diff)
be: Add and use macros to iterate only/all nodes except Phis in the schedule.
Diffstat (limited to 'ir/be/beuses.c')
-rw-r--r--ir/be/beuses.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ir/be/beuses.c b/ir/be/beuses.c
index 877028f..74f7103 100644
--- a/ir/be/beuses.c
+++ b/ir/be/beuses.c
@@ -134,11 +134,7 @@ static bool be_is_phi_argument(const ir_node *block, const ir_node *def)
/* iterate over the Phi nodes in the successor and check if def is
* one of its arguments */
const int i = get_edge_src_pos(edge);
- sched_foreach(succ_block, node) {
- /* we can stop the search on the first non-phi node */
- if (!is_Phi(node))
- break;
-
+ sched_foreach_phi(succ_block, node) {
const ir_node *arg = get_irn_n(node, i);
if (arg == def)
return true;