From 195ecdbec69e906770684e0257e71033460ebc69 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 28 Dec 2007 17:20:02 +0000 Subject: [PATCH] use edges_assure() where appropriate [r17079] --- ir/ir/irgopt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.20.1