summaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-04-12 17:23:50 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-04-12 17:23:50 +0000
commit3a395715ea8bdc1b781b8109e13aff1ab47033e1 (patch)
tree0ce0c201fdd490e513a7f1b9b2b746e1055c81dc /gcc/jump.c
parent27bb4395f2ac1bddf32d51aa63e1a4b9769517e1 (diff)
downloadgcc-3a395715ea8bdc1b781b8109e13aff1ab47033e1.tar.gz
(jump_optimize, clause for `x=a; if (...) x=b;'): Do this regardless
of BRANCH_COST if HAVE_conditional_move defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4098 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index fb4ff239e69..67c6b179b24 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1016,6 +1016,9 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
|| (temp3 = temp1,
((BRANCH_COST >= 2
&& temp2 == const0_rtx)
+#ifdef HAVE_conditional_move
+ || 1
+#endif
|| BRANCH_COST >= 3)))
/* INSN must either branch to the insn after TEMP or the insn
after TEMP must branch to the same place as INSN. */
@@ -1043,6 +1046,9 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
|| ((INTVAL (temp2) & INTVAL (temp3)) == INTVAL (temp3)
&& (reversep = can_reverse_comparison_p (temp4,
insn)))))
+#ifdef HAVE_conditional_move
+ || 1
+#endif
|| BRANCH_COST >= 3)
#ifdef HAVE_cc0
/* If the previous insn sets CC0 and something else, we can't