* doloop.c (doloop_optimize): Extract pattern from insn.
From-SVN: r54722
This commit is contained in:
parent
8217640552
commit
8a09a7e5f1
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user