Commit 51fbbb30 by Kazu Hirata Committed by Kazu Hirata

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
parent e87b9d8b
2003-06-15 Kazu Hirata <kazu@cs.umass.edu>
* builtins.c (expand_builtin_expect_jump): Remove redundant
tests that are also in any_condjump_p().
2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* libgcc2.c: Delete sysV68 L_trampoline section. * libgcc2.c: Delete sysV68 L_trampoline section.
......
...@@ -4248,18 +4248,13 @@ expand_builtin_expect_jump (exp, if_false_label, if_true_label) ...@@ -4248,18 +4248,13 @@ expand_builtin_expect_jump (exp, if_false_label, if_true_label)
while (insn != NULL_RTX) while (insn != NULL_RTX)
{ {
rtx next = NEXT_INSN (insn); rtx next = NEXT_INSN (insn);
rtx pattern;
if (GET_CODE (insn) == JUMP_INSN && any_condjump_p (insn) if (GET_CODE (insn) == JUMP_INSN && any_condjump_p (insn))
&& (pattern = pc_set (insn)) != NULL_RTX)
{ {
rtx ifelse = SET_SRC (pattern); rtx ifelse = SET_SRC (pc_set (insn));
rtx label; rtx label;
int taken; int taken;
if (GET_CODE (ifelse) != IF_THEN_ELSE)
goto do_next_insn;
if (GET_CODE (XEXP (ifelse, 1)) == LABEL_REF) if (GET_CODE (XEXP (ifelse, 1)) == LABEL_REF)
{ {
taken = 1; taken = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment