jump.c (simplejump_p): Recognize any single_set jump of the proper form.

* jump.c (simplejump_p): Recognize any single_set jump
        of the proper form.

From-SVN: r38786
This commit is contained in:
Richard Henderson 2001-01-07 14:50:50 -08:00 committed by Richard Henderson
parent 9c2e06d903
commit 8cd0792fdd
2 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2001-01-07 Richard Henderson <rth@redhat.com>
* jump.c (simplejump_p): Recognize any single_set jump
of the proper form.
2001-01-07 Richard Henderson <rth@redhat.com>
* configure.in (slibdir): Accept an --with-slibdir option.

View File

@ -2161,10 +2161,21 @@ int
simplejump_p (insn)
rtx insn;
{
return (GET_CODE (insn) == JUMP_INSN
&& GET_CODE (PATTERN (insn)) == SET
&& GET_CODE (SET_DEST (PATTERN (insn))) == PC
&& GET_CODE (SET_SRC (PATTERN (insn))) == LABEL_REF);
rtx set;
if (GET_CODE (insn) != JUMP_INSN)
return 0;
set = PATTERN (insn);
if (GET_CODE (set) != SET)
{
set = single_set_1 (insn);
if (set == NULL_RTX)
return 0;
}
return (GET_CODE (SET_DEST (set)) == PC
&& GET_CODE (SET_SRC (set)) == LABEL_REF);
}
/* Return nonzero if INSN is a (possibly) conditional jump