find_barrier(): Return as soon as a BARRIER insn is found.

From-SVN: r19386
This commit is contained in:
Nick Clifton 1998-04-23 15:03:25 +00:00 committed by Nick Clifton
parent d0c4285986
commit a2538ff76a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Thu Apr 23 15:01:13 1998 Nick Clifton <nickc@cygnus.com>
* config/arm/arm.c (find_barrier): Return as soon as a barrier is
found, rather than at end of the loop, after the insn has been
changed.
Thu Apr 23 20:21:06 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* sh.c (gen_ashift_hi): Implement right shifts via gen_ashift.

View File

@ -3539,7 +3539,7 @@ find_barrier (from, max_count)
while (from && count < max_count)
{
if (GET_CODE (from) == BARRIER)
found_barrier = from;
return from;
/* Count the length of this insn */
if (GET_CODE (from) == INSN