forbid to set current_block to Bad
[libfirm] / ir / ana / irextbb2.c
index 31f77be..94c38f2 100644 (file)
@@ -22,7 +22,6 @@
  * @brief     Alternative extended basic block computation
  * @author    Matthias Braun
  * @date      5.2005
- * @version   $Id$
  * @brief
  *  Alternative algorithm for computing extended basic blocks (using out edges
  *  and execution frequencies)
@@ -175,9 +174,6 @@ static void pick_successor(ir_node *block, ir_extblk *extblk, env_t *env)
        }
 }
 
-/*
- * Compute the extended basic blocks for a graph
- */
 void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs)
 {
        env_t     env;
@@ -243,5 +239,5 @@ void compute_extbb_execfreqs(ir_graph *irg, ir_exec_freq *execfreqs)
                extbb->visited = 0;
        }
 
-       irg->extblk_state = ir_extblk_info_valid;
+       set_irg_state(irg, IR_GRAPH_STATE_VALID_EXTENDED_BLOCKS);
 }