From a1b0b6a16b72d24949947dad60acd1074044b499 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Mon, 27 Nov 2006 16:31:39 +0000 Subject: [PATCH] change in behaviour of exchange: when out edges are activated, the dependencies are copies from old to new node (in and out ones) [r8422] --- ir/ir/irgmod.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.20.1