X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgopt.c;h=8bf933a37ca10897cb5f5cb001ede5865f7bee80;hb=486f1e4abd8cc35ffb4839b7254cdb70b98f38ee;hp=e8890660afbf405fdcf163871035ff4d045d780d;hpb=d389b0927d96f420131498069ec22cb1261125d0;p=libfirm diff --git a/ir/ir/irgopt.c b/ir/ir/irgopt.c index e8890660a..8bf933a37 100644 --- a/ir/ir/irgopt.c +++ b/ir/ir/irgopt.c @@ -97,8 +97,7 @@ static INLINE void do_local_optimize(ir_node *n) { set_irg_pinned(current_ir_graph, op_pin_state_floats); if (get_irg_outs_state(current_ir_graph) == outs_consistent) set_irg_outs_inconsistent(current_ir_graph); - if (get_irg_dom_state(current_ir_graph) == dom_consistent) - set_irg_dom_inconsistent(current_ir_graph); + set_irg_doms_inconsistent(current_ir_graph); set_irg_loopinfo_inconsistent(current_ir_graph); /* Clean the value_table in irg for the CSE. */ @@ -193,23 +192,6 @@ compute_new_arity(ir_node *b) { } } -/* TODO: add an ir_op operation */ -static INLINE void new_backedge_info(ir_node *n) { - switch(get_irn_opcode(n)) { - case iro_Block: - n->attr.block.cg_backedge = NULL; - n->attr.block.backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n)); - break; - case iro_Phi: - n->attr.phi_backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n)); - break; - case iro_Filter: - n->attr.filter.backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n)); - break; - default: ; - } -} - /** * Copies the node to the new obstack. The Ins of the new node point to * the predecessors on the old obstack. For block/phi nodes not all @@ -538,8 +520,7 @@ dead_node_elimination(ir_graph *irg) { /* @@@ so far we loose loops when copying */ free_loop_information(current_ir_graph); - if (get_irg_dom_state(irg) != dom_none) - set_irg_dom_inconsistent(irg); + set_irg_doms_inconsistent(irg); /* A quiet place, where the old obstack can rest in peace, until it will be cremated. */