+
+ return IR_GRAPH_STATE_NO_CRITICAL_EDGES | IR_GRAPH_STATE_ONE_RETURN;
+}
+
+static optdesc_t opt_ifconv = {
+ "if-conversion",
+ IR_GRAPH_STATE_NO_CRITICAL_EDGES | IR_GRAPH_STATE_NO_UNREACHABLE_CODE | IR_GRAPH_STATE_NO_BADS | IR_GRAPH_STATE_ONE_RETURN,
+ do_ifconv,
+};
+
+void opt_if_conv(ir_graph *irg)
+{
+ perform_irg_optimization(irg, &opt_ifconv);