* doloop.c (doloop_optimize): Extract pattern from insn.

From-SVN: r54722
This commit is contained in:
Alan Modra 2002-06-17 22:45:44 +00:00 committed by Alan Modra
parent 8217640552
commit 8a09a7e5f1
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2002-06-18 Alan Modra <amodra@bigpond.net.au>
* doloop.c (doloop_optimize): Extract pattern from insn.
2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
* doc/extend.texi (Function Attributes): Remove `,...' from @var.

View File

@ -875,11 +875,13 @@ doloop_optimize (loop)
jump instruction. Also, a raw define_insn may yield a plain
pattern. */
doloop_pat = doloop_seq;
if (INSN_P (doloop_pat) && NEXT_INSN (doloop_pat) != NULL_RTX)
if (INSN_P (doloop_pat))
{
while (NEXT_INSN (doloop_pat) != NULL_RTX)
doloop_pat = NEXT_INSN (doloop_pat);
if (GET_CODE (doloop_pat) != JUMP_INSN)
if (GET_CODE (doloop_pat) == JUMP_INSN)
doloop_pat = PATTERN (doloop_pat);
else
doloop_pat = NULL_RTX;
}