summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 13:33:13 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-28 13:33:13 +0100
commit81143885a3389e3d26fc5a91e1777ab8aac7b547 (patch)
treeee5ad1d604c7e19ec7006978a0893a2155fd8750 /ir/be/belive.c
parent7e447b3efcd7b0e79c6746da340416206331d18d (diff)
bearch: Use be_foreach_use() in more places.
Diffstat (limited to 'ir/be/belive.c')
-rw-r--r--ir/be/belive.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/ir/be/belive.c b/ir/be/belive.c
index bd407d9..a3d268f 100644
--- a/ir/be/belive.c
+++ b/ir/be/belive.c
@@ -486,17 +486,9 @@ void be_liveness_transfer(const arch_register_class_t *cls,
ir_nodeset_remove(nodeset, value);
);
- int arity = get_irn_arity(node);
- for (int i = 0; i < arity; ++i) {
- const arch_register_req_t *in_req = arch_get_irn_register_req_in(node, i);
- if (in_req->cls != cls)
- continue;
- ir_node *op = get_irn_n(node, i);
- const arch_register_req_t *op_req = arch_get_irn_register_req(op);
- if (arch_register_req_is(op_req, ignore))
- continue;
+ be_foreach_use(node, cls, in_req, op, op_req,
ir_nodeset_insert(nodeset, op);
- }
+ );
}