normalize_n_returns does produce unreachable code and invalidates other stuff
[libfirm] / ir / opt / scalar_replace.c
index 01f9d47..6d16437 100644 (file)
@@ -769,9 +769,9 @@ static ir_graph_state_t do_scalar_replacement(ir_graph *irg)
        return 0;
 }
 
-optdesc_t opt_scalar_rep = {
+static optdesc_t opt_scalar_rep = {
        "scalar-replace",
-       IR_GRAPH_STATE_NO_UNREACHABLE_BLOCKS | IR_GRAPH_STATE_CONSISTENT_OUTS,
+       IR_GRAPH_STATE_NO_UNREACHABLE_CODE | IR_GRAPH_STATE_CONSISTENT_OUTS,
        do_scalar_replacement,
 };