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/combine.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/combine.c')
-rw-r--r-- | gcc/combine.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index bf356e9be39..431a723cde7 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7345,7 +7345,7 @@ if_then_else_cond (rtx x, rtx *ptrue, rtx *pfalse) /* If we are comparing a value against zero, we are done. */ if ((code == NE || code == EQ) - && GET_CODE (XEXP (x, 1)) == CONST_INT && INTVAL (XEXP (x, 1)) == 0) + && XEXP (x, 1) == const0_rtx) { *ptrue = (code == NE) ? const_true_rtx : const0_rtx; *pfalse = (code == NE) ? const0_rtx : const_true_rtx; |