From: Michael Beck Date: Wed, 7 Jun 2006 13:12:25 +0000 (+0000) Subject: Litte bugfix form older errors: use irg instead of current_ir_graph X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5fc55389c848cf1db10514a6de5b1ec8835e4fdc;p=libfirm Litte bugfix form older errors: use irg instead of current_ir_graph [r7881] --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 6cf4e32a5..8664a7649 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -1073,10 +1073,6 @@ void optimize_load_store(ir_graph *irg) { walk_env_t env; - /* must set current it graph here, because new nodes are - constructed in the fixpoint iteration */ - current_ir_graph = irg; - assert(get_irg_phase_state(irg) != phase_building); assert(get_irg_pinned(irg) != op_pin_state_floats && "LoadStore optimization needs pinned graph"); @@ -1098,12 +1094,13 @@ void optimize_load_store(ir_graph *irg) /* Handle graph state */ if (env.changes) { - if (get_irg_outs_state(current_ir_graph) == outs_consistent) - set_irg_outs_inconsistent(current_ir_graph); + if (get_irg_outs_state(irg) == outs_consistent) + set_irg_outs_inconsistent(irg); } if (env.changes & CF_CHANGED) { - /* is this really needed: Yes, control flow changed, block might get Bad. */ - set_irg_doms_inconsistent(current_ir_graph); + /* is this really needed: Yes, control flow changed, block might + have Bad() predecessors. */ + set_irg_doms_inconsistent(irg); } }