Commit c9665fa5 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

optimize_blocks ignores unreachable blocks

Fixes opt/ioet.c
parent 443bd8c8
......@@ -283,6 +283,11 @@ static void optimize_blocks(ir_node *b, void *ctx)
ir_node **in;
merge_env *env = (merge_env*)ctx;
if (get_Block_dom_depth(b) < 0) {
/* ignore unreachable blocks */
return;
}
/* Count the number of predecessor if this block is merged with pred blocks
that are empty. */
max_preds = 0;
......
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