diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-22 00:36:52 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-22 00:36:52 +0000 |
commit | 9a1ec8264f2fdb652317484f840b7ff241879e07 (patch) | |
tree | 775d4ddb99f9b3f93365bd8925c483c84331fcc2 /gcc/loop.c | |
parent | 25646a5f98e42dba323e3d19d72f35c9bac4ec85 (diff) | |
download | gcc-9a1ec8264f2fdb652317484f840b7ff241879e07.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69658 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index ba25dff5696..74851265501 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -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) |