aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-06-15 06:55:55 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-06-15 06:55:55 +0000
commit51fbbb3054015c5621a22a52a43dd1a7b84eebad (patch)
treee8f2c2ca80411c40d180fdf96918532f4ca9c29e /gcc/builtins.c
parente87b9d8b7ad4941bf2c33d42467569568d18ca5c (diff)
downloadgcc-51fbbb3054015c5621a22a52a43dd1a7b84eebad.zip
gcc-51fbbb3054015c5621a22a52a43dd1a7b84eebad.tar.gz
gcc-51fbbb3054015c5621a22a52a43dd1a7b84eebad.tar.bz2
builtins.c (expand_builtin_expect_jump): Remove redundant tests that are also in any_condjump_p().
* builtins.c (expand_builtin_expect_jump): Remove redundant tests that are also in any_condjump_p(). From-SVN: r67966
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 365f1e1..c6528d7 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -4248,18 +4248,13 @@ expand_builtin_expect_jump (exp, if_false_label, if_true_label)
while (insn != NULL_RTX)
{
rtx next = NEXT_INSN (insn);
- rtx pattern;
- if (GET_CODE (insn) == JUMP_INSN && any_condjump_p (insn)
- && (pattern = pc_set (insn)) != NULL_RTX)
+ if (GET_CODE (insn) == JUMP_INSN && any_condjump_p (insn))
{
- rtx ifelse = SET_SRC (pattern);
+ rtx ifelse = SET_SRC (pc_set (insn));
rtx label;
int taken;
- if (GET_CODE (ifelse) != IF_THEN_ELSE)
- goto do_next_insn;
-
if (GET_CODE (XEXP (ifelse, 1)) == LABEL_REF)
{
taken = 1;