Commit 590ee347 authored by Matthias Braun's avatar Matthias Braun
Browse files

use edges_delete_node instead of setting edge inputs to Bad when killing a node

parent 31df6eb8
......@@ -197,15 +197,17 @@ void be_kill_node(ir_node *irn) {
int i, first;
ir_graph *irg;
if (is_Bad(irn))
return;
assert(!is_Bad(irn));
DEBUG_ONLY(
irg = get_irn_irg(irn);
first = 0 - ! is_Block(irn);
for (i = get_irn_arity(irn) - 1; i >= first; --i) {
set_irn_n(irn, i, get_irg_bad(irg));
}
)
edges_node_deleted(irn, irg);
}
/* FIXME: not used. can be deleted? */
......
Markdown is supported
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