diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-07-22 00:36:52 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-07-22 00:36:52 +0000 |
commit | 87d9741e4e6ff884ec5e34b19d46bd17051dec63 (patch) | |
tree | 775d4ddb99f9b3f93365bd8925c483c84331fcc2 /gcc/loop.c | |
parent | 32d0e51b548705973cc92c97069e56ad7095022f (diff) | |
download | gcc-87d9741e4e6ff884ec5e34b19d46bd17051dec63.zip gcc-87d9741e4e6ff884ec5e34b19d46bd17051dec63.tar.gz gcc-87d9741e4e6ff884ec5e34b19d46bd17051dec63.tar.bz2 |
combine.c (if_then_else_cond): Simplify the comparison of rtx against -1, 0, and 1.
* combine.c (if_then_else_cond): Simplify the comparison of
rtx against -1, 0, and 1.
* loop.c (check_dbra_loop): Likewise.
* optabs.c (emit_conditional_move): Likewise.
(emit_conditional_add): Likewise.
* config/i386/i386.md (*movsi_or): Likewise.
(*movdi_or_rex6): Likewise.
From-SVN: r69658
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -8034,9 +8034,7 @@ check_dbra_loop (struct loop *loop, int insn_count) In this case, add a reg_note REG_NONNEG, which allows the m68k DBRA instruction to be used. */ - if (((GET_CODE (comparison) == GT - && GET_CODE (XEXP (comparison, 1)) == CONST_INT - && INTVAL (XEXP (comparison, 1)) == -1) + if (((GET_CODE (comparison) == GT && XEXP (comparison, 1) == constm1_rtx) || (GET_CODE (comparison) == NE && XEXP (comparison, 1) == const0_rtx)) && GET_CODE (bl->biv->add_val) == CONST_INT && INTVAL (bl->biv->add_val) < 0) |