use edges_assure() where appropriate
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 28 Dec 2007 17:20:02 +0000 (17:20 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 28 Dec 2007 17:20:02 +0000 (17:20 +0000)
[r17079]

ir/ir/irgopt.c

index 84493f0..9d52e95 100644 (file)
@@ -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);