aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1993-01-03 19:22:40 -0700
committerJeff Law <law@gcc.gnu.org>1993-01-03 19:22:40 -0700
commita8d916d3d381c5cdb1968ffbd0b44ef75ffb6980 (patch)
tree57ddd0c8ee48c7efbbd8d8a32dc35660d4d2cdf9
parentfd0214cd48c0d9d4e61df6f882633b510a31e122 (diff)
downloadgcc-a8d916d3d381c5cdb1968ffbd0b44ef75ffb6980.zip
gcc-a8d916d3d381c5cdb1968ffbd0b44ef75ffb6980.tar.gz
gcc-a8d916d3d381c5cdb1968ffbd0b44ef75ffb6980.tar.bz2
jump.c (jump_optimize, [...]): Do this regardless of BRANCH_COST if HAVE_incscc is defined.
* jump.c (jump_optimize, case if (foo) b++): Do this regardless of BRANCH_COST if HAVE_incscc is defined. From-SVN: r3082
-rw-r--r--gcc/jump.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 14e08cd..aa5ed29 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -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