Commit a8005112 authored by Matthias Braun's avatar Matthias Braun
Browse files

normalize_n_returns does produce unreachable code and invalidates other stuff

parent 09a64abd
......@@ -376,7 +376,12 @@ void normalize_n_returns(ir_graph *irg)
* Blocks become dead and new Returns were deleted, so dominator, outs and loop are inconsistent,
* trouts and callee-state should be still valid
*/
clear_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_DOMINANCE);
clear_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_DOMINANCE
| IR_GRAPH_STATE_CONSISTENT_POSTDOMINANCE
| IR_GRAPH_STATE_ONE_RETURN
| IR_GRAPH_STATE_CONSISTENT_OUTS
| IR_GRAPH_STATE_NO_UNREACHABLE_CODE
| IR_GRAPH_STATE_NO_BADS);
set_irg_extblk_inconsistent(irg); /* may not be needed */
}
......
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