Fix cfopt
authorAndreas Zwinkau <zwinkau@kit.edu>
Thu, 15 Sep 2011 12:09:41 +0000 (14:09 +0200)
committerAndreas Zwinkau <zwinkau@kit.edu>
Thu, 15 Sep 2011 12:10:37 +0000 (14:10 +0200)
The cfopt itself can handle unreachable code,
but it transforms it in a way that makes the verifier unhappy.

ir/opt/cfopt.c

index b10dc51..927cb5d 100644 (file)
@@ -972,7 +972,7 @@ static ir_graph_state_t do_cfopt(ir_graph *irg)
 
 optdesc_t opt_cf = {
        "control-flow",
-       0,
+       IR_GRAPH_STATE_NO_UNREACHABLE_BLOCKS,
        do_cfopt,
 };