jump.c (jump_optimize, [...]): Do this regardless of BRANCH_COST if HAVE_incscc is...
authorJeff Law <law@gcc.gnu.org>
Mon, 4 Jan 1993 02:22:40 +0000 (19:22 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 4 Jan 1993 02:22:40 +0000 (19:22 -0700)
* jump.c (jump_optimize, case if (foo) b++):  Do this regardless
of BRANCH_COST if HAVE_incscc is defined.

From-SVN: r3082

gcc/jump.c

index 14e08cd989720533002ab2e67f7d73c5876cfa3e..aa5ed29e30f85e4c2a82bbbfeb18397de33c8a2f 100644 (file)
@@ -1191,7 +1191,11 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
             TEMP3 to the condition being tested.
             TEMP4 to the earliest insn used to find the condition.  */
 
-         if (BRANCH_COST >= 2
+         if ((BRANCH_COST >= 2
+#ifdef HAVE_incscc
+              || HAVE_incscc
+#endif
+             )
              && ! reload_completed
              && this_is_condjump && ! this_is_simplejump
              && (temp = next_nonnote_insn (insn)) != 0