Commit 6c6629cc authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Documentation: why kill unreachable code between localopts

parent 4201c0e4
......@@ -226,7 +226,8 @@ int optimize_graph_df(ir_graph *irg)
ir_node *n = (ir_node*)pdeq_getl(waitq);
opt_walker(n, waitq);
}
/* Calculate dominance so we can kill unreachable code */
/* Calculate dominance so we can kill unreachable code
* We want this intertwined with localopts for better optimization (phase coupling) */
compute_doms(irg);
irg_block_walk_graph(irg, NULL, find_unreachable_blocks, waitq);
}
......
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