summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-08 22:10:01 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-08 22:15:13 +0200
commitcee0277785adf4dcb6cccd2c8db7bcce007da80f (patch)
tree28e57d1edb3d18777c99f26b0a010570a3ce224a /ir/be/betranshlp.c
parent85165dfe591e7a6a8a00a2498672fb8826215053 (diff)
be: Do not redundantly set the operands of the new anchor again.
The new anchor gets the transformed operands earlier already.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index ff23ec7..1a4eb40 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -274,11 +274,10 @@ static void transform_nodes(ir_graph *irg, arch_pretrans_nodes *pre_transform)
be_transform_node(node);
}
- /* fix loops and set new anchors*/
+ /* Fix loops. */
inc_irg_visited(irg);
- foreach_irn_in_r(old_anchor, i, n) {
- ir_node *const anchor = (ir_node*)get_irn_link(n);
- fix_loops(anchor);
+ foreach_irn_in_r(new_anchor, i, n) {
+ fix_loops(n);
}
del_waitq(env.worklist);