]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* jump.c (simplejump_p): Recognize any single_set jump
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Jan 2001 22:50:50 +0000 (22:50 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 7 Jan 2001 22:50:50 +0000 (22:50 +0000)
        of the proper form.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38786 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/jump.c

index 12d2540dc00084a78450dbee16595f51af792b98..304c7dee3b07ad9adaf641a70bfd0047d1097d43 100644 (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.
index 1716f073107e6beb455c500cd6daf9cc746c5d19..248c1d6dfd30f0beedb504e97f799f6655d4a6a8 100644 (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