Commit a2f54138 by Jeff Law

reorg.c (try_merge_delay_insns): Fix typo.

	* reorg.c (try_merge_delay_insns): Fix typo.
	(fill_simple_delay_slots): Only access the JUMP_LABEL field
	if the INSN needing delay slots is a JUMP_INSN.

From-SVN: r5135
parent f085c9cd
......@@ -1663,7 +1663,7 @@ try_merge_delay_insns (insn, thread)
int i;
int flags;
flags = get_jump_flags (insn, JUMP_LABEL (insn));
flags = get_jump_flags (delay_insn, JUMP_LABEL (delay_insn));
CLEAR_RESOURCE (&needed);
CLEAR_RESOURCE (&set);
......@@ -2654,7 +2654,10 @@ fill_simple_delay_slots (first, non_jumps_p)
|| (GET_CODE (insn) != JUMP_INSN && ! non_jumps_p))
continue;
if (GET_CODE (insn) == JUMP_INSN)
flags = get_jump_flags (insn, JUMP_LABEL (insn));
else
flags = get_jump_flags (insn, NULL_RTX);
slots_to_fill = num_delay_slots (insn);
if (slots_to_fill == 0)
abort ();
......
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