From 51fbbb3054015c5621a22a52a43dd1a7b84eebad Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Jun 2003 06:55:55 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 770098a0d7f..5f410d35924 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-15 Kazu Hirata + + * builtins.c (expand_builtin_expect_jump): Remove redundant + tests that are also in any_condjump_p(). + 2003-06-15 Kaveh R. Ghazi * libgcc2.c: Delete sysV68 L_trampoline section. diff --git a/gcc/builtins.c b/gcc/builtins.c index 365f1e1556f..c6528d7ddef 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; -- 2.30.2