Commit 4f8e8046 authored by yb9976's avatar yb9976
Browse files

We do not need to place Phis in dead blocks.

This fixes opt/jumpthreading3.c.
parent 5d9cd796
......@@ -84,7 +84,7 @@ static ir_node *search_def_and_create_phis(ir_node *block, ir_mode *mode,
ir_node *dummy;
/* This is needed because we create bads sometimes */
if (is_Bad(block)) {
if (is_Bad(block) || is_Block_dead(block)) {
ir_graph *irg = get_irn_irg(block);
return new_r_Bad(irg);
}
......
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