aboutsummaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-01-08 10:52:50 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-01-08 10:52:50 -0800
commit3c74f8f98730bef1bd3b3ad53c2112fce57f7b72 (patch)
tree8a51b8ff68c9154a10a841f1ca6d9336c71820cf /gcc/jump.c
parent674c3b405ce43dae5f198aa418c2349a4988f429 (diff)
downloadgcc-3c74f8f98730bef1bd3b3ad53c2112fce57f7b72.zip
gcc-3c74f8f98730bef1bd3b3ad53c2112fce57f7b72.tar.gz
gcc-3c74f8f98730bef1bd3b3ad53c2112fce57f7b72.tar.bz2
* jump.c (simplejump_p): Revert last change.
From-SVN: r38806
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 15e41f0..ff2ab14 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -2163,21 +2163,10 @@ int
simplejump_p (insn)
rtx insn;
{
- 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 (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);
}
/* Return nonzero if INSN is a (possibly) conditional jump