From 112986c24c9e260b9d14f392f7bc35a6662091d4 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Sun, 25 Mar 2012 20:34:22 +0200 Subject: [PATCH] Code placement cannot handle unreachable code. --- ir/opt/code_placement.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ir/opt/code_placement.c b/ir/opt/code_placement.c index 0d633ca2c..a9f4efb8e 100644 --- a/ir/opt/code_placement.c +++ b/ir/opt/code_placement.c @@ -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, -- 2.20.1