From: Jan Hubicka Date: Fri, 2 Mar 2001 11:00:29 +0000 (+0100) Subject: * ifcvt.c (noce_operand_ok): Handle properly unarry operations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68af29ce9d38679a82821886eb776aa5b423e117;p=gcc.git * ifcvt.c (noce_operand_ok): Handle properly unarry operations. From-SVN: r40181 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73859316b99..d1eb0ac54aa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 2 11:59:43 CET 2001 Jan Hubicka + + * ifcvt.c (noce_operand_ok): Handle properly unarry operations. + 2001-03-02 Neil Booth * cppfiles.c (struct include_file): Update. diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index fd934b5643e..06c25fd321c 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1417,8 +1417,9 @@ noce_operand_ok (op) default: switch (GET_RTX_CLASS (GET_CODE (op))) { - case 'c': case '1': + return ! may_trap_p (XEXP (op, 0)); + case 'c': case '2': return ! may_trap_p (XEXP (op, 0)) && ! may_trap_p (XEXP (op, 1)); }