Control flow optimization: Merge consecutive blocks.
[libfirm] / ir / opt / critical_edges.c
index 12fcf98..11b282d 100644 (file)
@@ -22,7 +22,6 @@
  * @brief    Remove critical edges.
  * @author   Christian Schaefer, Goetz Lindenmaier, Sebastian Felis,
  *           Michael Beck
- * @version  $Id$
  */
 #include "config.h"
 
@@ -90,9 +89,9 @@ insert:
                                /* set successor of new block */
                                set_irn_n(n, i, jmp);
                                cenv->changed = 1;
-                       } /* predecessor has multiple successors */
-               } /* for all predecessors */
-       } /* n is a multi-entry block */
+                       }
+               }
+       }
 }
 
 void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges)
@@ -108,6 +107,7 @@ void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges)
                clear_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_DOMINANCE
                                   | IR_GRAPH_STATE_VALID_EXTENDED_BLOCKS);
        }
+       set_irg_state(irg, IR_GRAPH_STATE_NO_CRITICAL_EDGES);
 }
 
 void remove_critical_cf_edges(ir_graph *irg)