Commit b2ff7205 authored by Manuel Mohr's avatar Manuel Mohr Committed by Matthias Braun
Browse files

sparc: Stop looking for delay slot node when leaving current block.

parent c5b58c80
......@@ -398,6 +398,11 @@ static const ir_node *pick_delay_slot_for(const ir_node *node)
if (emits_multiple_instructions(schedpoint))
continue;
/* if check and schedpoint are not in the same block, give up. */
if (check != NULL
&& get_nodes_block(check) != get_nodes_block(schedpoint))
break;
/* allowed for delayslot: any instruction which is not necessary to
* compute an input to the branch. */
if (check != NULL
......
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