Commit 0f4456da authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Replace edges_reroute() + kill_node() by exchange().

parent e8048e4e
...@@ -132,10 +132,8 @@ static void transform_sub_to_neg_add(ir_node *node, ...@@ -132,10 +132,8 @@ static void transform_sub_to_neg_add(ir_node *node,
arch_set_irn_register(add_res, out_reg); arch_set_irn_register(add_res, out_reg);
/* exchange the add and the sub */ /* exchange the add and the sub */
edges_reroute(node, add);
sched_replace(node, add); sched_replace(node, add);
exchange(node, add);
kill_node(node);
} }
static ir_node *amd64_turn_back_am(ir_node *node) static ir_node *amd64_turn_back_am(ir_node *node)
......
...@@ -169,16 +169,12 @@ carry:; ...@@ -169,16 +169,12 @@ carry:;
} }
} }
/* exchange the add and the sub */
edges_reroute(irn, res);
sched_replace(irn, res);
set_irn_mode(res, get_irn_mode(irn)); set_irn_mode(res, get_irn_mode(irn));
SET_IA32_ORIG_NODE(res, irn); SET_IA32_ORIG_NODE(res, irn);
/* remove the old sub */ /* exchange the add and the sub */
kill_node(irn); sched_replace(irn, res);
exchange(irn, res);
} }
static inline int need_constraint_copy(ir_node *irn) static inline int need_constraint_copy(ir_node *irn)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment