From: Christian Würdig Date: Mon, 27 Nov 2006 16:31:39 +0000 (+0000) Subject: change in behaviour of exchange: X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a1b0b6a16b72d24949947dad60acd1074044b499;p=libfirm change in behaviour of exchange: when out edges are activated, the dependencies are copies from old to new node (in and out ones) [r8422] --- diff --git a/ir/ir/irgmod.c b/ir/ir/irgmod.c index 2c57fe18b..b60424081 100644 --- a/ir/ir/irgmod.c +++ b/ir/ir/irgmod.c @@ -61,7 +61,11 @@ exchange (ir_node *old, ir_node *nw) * the edges from the old node to the new directly. */ if (edges_activated(current_ir_graph)) { + /* copy all dependencies from old to new */ + add_irn_deps(nw, old); + edges_reroute(old, nw, current_ir_graph); + edges_reroute_kind(old, nw, EDGE_KIND_DEP, current_ir_graph); edges_node_deleted(old, current_ir_graph); old->op = op_Bad; }