X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Freturn.c;h=7fac730cf48baad976a1bc29430cea77f5a15a48;hb=b27ae245166bb695bc4e418ff416d91bc37d0f28;hp=426f7e691d323dba77c8889d348ba5620c68a793;hpb=ce6161a7e42a48f7422b7babcc64d8ace18e2687;p=libfirm diff --git a/ir/opt/return.c b/ir/opt/return.c index 426f7e691..7fac730cf 100644 --- a/ir/opt/return.c +++ b/ir/opt/return.c @@ -163,9 +163,7 @@ void normalize_one_return(ir_graph *irg) * trouts and callee-state should be still valid */ set_irg_doms_inconsistent(irg); - set_irg_outs_inconsistent(irg); set_irg_extblk_inconsistent(irg); - set_irg_loopinfo_inconsistent(irg); } /* Create a graph pass. */ @@ -181,7 +179,7 @@ ir_graph_pass_t *normalize_one_return_pass(const char *name) * with the Return, otherwise they are dead (because the Return leaves * the graph, so no more users of the other nodes can exists. * - * We can move a Return, if it's predecessors are Phi nodes or + * We can move a Return, if its predecessors are Phi nodes or * comes from another block. In the later case, it is always possible * to move the Return one block up, because the predecessor block must * dominate the Return block (SSA) and then it dominates the predecessor @@ -340,7 +338,7 @@ void normalize_n_returns(ir_graph *irg) } /* remove the Jmp, we have placed a Return here */ - exchange(jmp, new_r_Bad(irg)); + exchange(jmp, new_r_Bad(irg, mode_X)); } /* @@ -353,7 +351,7 @@ void normalize_n_returns(ir_graph *irg) n = get_End_n_keepalives(end); for (i = 0; i < n; ++i) { if (get_End_keepalive(end, i) == phiM) { - set_End_keepalive(end, i, new_r_Bad(irg)); + set_End_keepalive(end, i, new_r_Bad(irg, mode_M)); break; } } @@ -380,8 +378,6 @@ void normalize_n_returns(ir_graph *irg) */ set_irg_doms_inconsistent(irg); set_irg_extblk_inconsistent(irg); /* may not be needed */ - set_irg_outs_inconsistent(irg); - set_irg_loopinfo_inconsistent(irg); } /* Create a graph pass. */