aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-07-22 00:36:52 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-07-22 00:36:52 +0000
commit87d9741e4e6ff884ec5e34b19d46bd17051dec63 (patch)
tree775d4ddb99f9b3f93365bd8925c483c84331fcc2 /gcc/combine.c
parent32d0e51b548705973cc92c97069e56ad7095022f (diff)
downloadgcc-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/combine.c')
-rw-r--r--gcc/combine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index bf356e9..431a723 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;