From 87d9741e4e6ff884ec5e34b19d46bd17051dec63 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 22 Jul 2003 00:36:52 +0000 Subject: 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 --- gcc/combine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/combine.c') 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; -- cgit v1.1