(jump_optimize, clause for `x=a; if (...) x=b;'): Do this regardless
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 12 Apr 1993 17:23:50 +0000 (13:23 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 12 Apr 1993 17:23:50 +0000 (13:23 -0400)
of BRANCH_COST if HAVE_conditional_move defined.

From-SVN: r4098

gcc/jump.c

index fb4ff239e691227d91a207289e2ac73686f16ac7..67c6b179b2499dac19c569517cb3dc5f5db11194 100644 (file)
@@ -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