Commit 5dcf6dbd authored by Matthias Braun's avatar Matthias Braun
Browse files

fix critical_edge remover clearing too few properties

parent 6ce7d764
......@@ -83,7 +83,9 @@ void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges)
irg_block_walk_graph(irg, NULL, walk_critical_cf_edges, &env);
if (env.changed) {
/* control flow changed */
clear_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_DOMINANCE);
clear_irg_properties(irg, IR_GRAPH_PROPERTIES_ALL
& ~(IR_GRAPH_PROPERTY_ONE_RETURN
| IR_GRAPH_PROPERTY_MANY_RETURNS));
}
add_irg_properties(irg, IR_GRAPH_PROPERTY_NO_CRITICAL_EDGES);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment