Commit 37f398f4 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Assure all the required graph properties at the right place in optimize_graph_df().

Computing (post)dominators removes tuples, which in turn invalidates out edges, if any tuples were removed.
parent 6d85008c
......@@ -170,7 +170,6 @@ void optimize_graph_df(ir_graph *irg)
assure_irg_properties(irg, props);
ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
......@@ -183,7 +182,7 @@ void optimize_graph_df(ir_graph *irg)
/* any optimized nodes are stored in the wait queue,
* so if it's not empty, the graph has been changed */
while (!deq_empty(&waitq)) {
assure_irg_properties(irg, props);
/* finish the wait queue */
while (!deq_empty(&waitq)) {
Supports Markdown
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