Merge branch 'opt_manage'
[libfirm] / include / libfirm / irgopt.h
index b08aab2..a4cf9f7 100644 (file)
@@ -58,6 +58,20 @@ FIRM_API void local_optimize_graph(ir_graph *irg);
  */
 FIRM_API int optimize_graph_df(ir_graph *irg);
 
+/**
+ * Transforms unreachable blocks and nodes in there into Bad nodes
+ */
+FIRM_API void remove_unreachable_blocks(ir_graph *irg);
+
+/**
+ * Removes all Bad nodes from a graph.
+ *
+ * @param irg  The graph to be optimized.
+ *
+ * @return non-zero if at least one Bad was removed, otherwise 0
+ */
+FIRM_API int remove_bads(ir_graph *irg);
+
 /**
  * Creates an ir_graph pass for optimize_graph_df().
  *