Commit 9242213f by Eric Botcazou Committed by Eric Botcazou

reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the forward scan as well.

	* reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
	forward scan as well.

From-SVN: r175524
parent db8b22ef
2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
* reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
forward scan as well.
2011-06-27 Tristan Gingold <gingold@adacore.com> 2011-06-27 Tristan Gingold <gingold@adacore.com>
PR target/44241 PR target/44241
......
...@@ -2152,7 +2152,7 @@ fill_simple_delay_slots (int non_jumps_p) ...@@ -2152,7 +2152,7 @@ fill_simple_delay_slots (int non_jumps_p)
/* This must be an INSN or CALL_INSN. */ /* This must be an INSN or CALL_INSN. */
pat = PATTERN (trial); pat = PATTERN (trial);
/* USE and CLOBBER at this level was just for flow; ignore it. */ /* Stand-alone USE and CLOBBER are just for flow. */
if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER) if (GET_CODE (pat) == USE || GET_CODE (pat) == CLOBBER)
continue; continue;
...@@ -2271,15 +2271,12 @@ fill_simple_delay_slots (int non_jumps_p) ...@@ -2271,15 +2271,12 @@ fill_simple_delay_slots (int non_jumps_p)
} }
if (target == 0) if (target == 0)
for (trial = next_nonnote_insn (insn); trial; trial = next_trial) for (trial = next_nonnote_insn (insn); !stop_search_p (trial, 1);
trial = next_trial)
{ {
next_trial = next_nonnote_insn (trial); next_trial = next_nonnote_insn (trial);
if (LABEL_P (trial) /* This must be an INSN or CALL_INSN. */
|| BARRIER_P (trial))
break;
/* We must have an INSN, JUMP_INSN, or CALL_INSN. */
pat = PATTERN (trial); pat = PATTERN (trial);
/* Stand-alone USE and CLOBBER are just for flow. */ /* Stand-alone USE and CLOBBER are just for flow. */
...@@ -2293,7 +2290,7 @@ fill_simple_delay_slots (int non_jumps_p) ...@@ -2293,7 +2290,7 @@ fill_simple_delay_slots (int non_jumps_p)
else else
trial_delay = trial; trial_delay = trial;
/* Stop our search when seeing an unconditional jump. */ /* Stop our search when seeing a jump. */
if (JUMP_P (trial_delay)) if (JUMP_P (trial_delay))
break; break;
......
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