reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip with a return instruction.

* reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
	with a return instruction.

From-SVN: r193171
This commit is contained in:
Joern Rennecke 2012-11-05 17:16:33 +00:00 committed by Joern Rennecke
parent 1bdc4b116e
commit 8db13a7fd8
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
* reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
with a return instruction.
2012-11-05 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/55151

View File

@ -2196,7 +2196,8 @@ fill_simple_delay_slots (int non_jumps_p)
if (slots_filled != slots_to_fill
&& delay_list == 0
&& JUMP_P (insn)
&& (condjump_p (insn) || condjump_in_parallel_p (insn)))
&& (condjump_p (insn) || condjump_in_parallel_p (insn))
&& !ANY_RETURN_P (JUMP_LABEL (insn)))
{
delay_list = optimize_skip (insn);
if (delay_list)