Commit ad16256a authored by yb9976's avatar yb9976
Browse files

Merge blocks to preserve keep-alive edges.

This fixes opt/fehler211.c and opt/fehler212.c.
parent aa92a9fc
......@@ -476,9 +476,9 @@ static void optimize_blocks(ir_node *b, void *ctx)
in[n_preds++] = predpred;
}
/* Remove block+jump as it might be kept alive. */
/* Remove jump and merge blocks as they might be kept alive. */
exchange(pred, new_r_Bad(get_irn_irg(b), mode_X));
exchange(predb, new_r_Bad(get_irn_irg(b), mode_BB));
exchange(predb, b);
} else {
/* case 3: */
in[n_preds++] = pred;
......
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