summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bechordal_common.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-02-13 16:38:46 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2014-02-17 14:11:15 +0100
commit0ea8b7276a18cf5cdaa89cf6b054faa60086f9a0 (patch)
tree01d0462aed83d8b63097e7091b1feafde5f683b1 /ir/be/bechordal_common.c
parentcc281f880e6e186609e3c0222dca4dfca968f1f6 (diff)
Add and use foreach_irn_pred{,_r}().
Diffstat (limited to 'ir/be/bechordal_common.c')
-rw-r--r--ir/be/bechordal_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/bechordal_common.c b/ir/be/bechordal_common.c
index f66a777..7657b59 100644
--- a/ir/be/bechordal_common.c
+++ b/ir/be/bechordal_common.c
@@ -147,8 +147,7 @@ ir_node *pre_process_constraints(be_chordal_env_t *env, be_insn_t **the_insn)
/* Copy the input constraints of the irn to the Perm as output
* constraints. Succeeding phases (coalescing) will need that. */
- for (int i = 0, n = get_irn_arity(irn); i != n; ++i) {
- ir_node *const proj = get_irn_n(irn, i);
+ foreach_irn_in(irn, i, proj) {
/* Note that the predecessor is not necessarily a Proj of the Perm,
* since ignore-nodes are not Perm'ed. */
if (!is_Proj(proj) || get_Proj_pred(proj) != perm)