Code placement cannot handle unreachable code.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Sun, 25 Mar 2012 18:34:22 +0000 (20:34 +0200)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Sun, 25 Mar 2012 18:34:22 +0000 (20:34 +0200)
ir/opt/code_placement.c

index 0d633ca..a9f4efb 100644 (file)
@@ -425,6 +425,7 @@ static ir_graph_state_t do_codeplacement(ir_graph *irg)
 static optdesc_t opt_codeplacement = {
        "code-placement",
        IR_GRAPH_STATE_NO_CRITICAL_EDGES |
+       IR_GRAPH_STATE_NO_UNREACHABLE_CODE |
        IR_GRAPH_STATE_CONSISTENT_OUTS |
        IR_GRAPH_STATE_CONSISTENT_DOMINANCE |
        IR_GRAPH_STATE_CONSISTENT_LOOPINFO,