change in behaviour of exchange:
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Mon, 27 Nov 2006 16:31:39 +0000 (16:31 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Mon, 27 Nov 2006 16:31:39 +0000 (16:31 +0000)
when out edges are activated, the dependencies are copies from old to new node (in and out ones)

[r8422]

ir/ir/irgmod.c

index 2c57fe1..b604240 100644 (file)
@@ -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;
   }