From: Michael Beck Date: Fri, 28 Dec 2007 17:20:02 +0000 (+0000) Subject: use edges_assure() where appropriate X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=195ecdbec69e906770684e0257e71033460ebc69;p=libfirm use edges_assure() where appropriate [r17079] --- diff --git a/ir/ir/irgopt.c b/ir/ir/irgopt.c index 84493f058..9d52e9504 100644 --- a/ir/ir/irgopt.c +++ b/ir/ir/irgopt.c @@ -182,15 +182,13 @@ static void opt_walker(ir_node *n, void *env) { /* Applies local optimizations to all nodes in the graph until fixpoint. */ void optimize_graph_df(ir_graph *irg) { pdeq *waitq = new_pdeq(); - int state = edges_activated(irg); ir_graph *rem = current_ir_graph; ir_node *end; - int i; + int i, state; current_ir_graph = irg; - if (! state) - edges_activate(irg); + state = edges_assure(irg); if (get_opt_global_cse()) set_irg_pinned(current_ir_graph, op_pin_state_floats);