From: uros Date: Mon, 22 Jun 2015 13:54:58 +0000 (+0000) Subject: PR target/65871 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ac3baa24235864928e30e04e325e23af1155945;p=thirdparty%2Fgcc.git PR target/65871 * config/i386/i386.c (ix86_rtx_costs) : Ignore the cost of embedded comparison. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224729 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9bfaa22f49b7..6ca98cf10f71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-06-22 Uros Bizjak + + PR target/65871 + * config/i386/i386.c (ix86_rtx_costs) : Ignore the + cost of embedded comparison. + 2015-06-22 Bill Schmidt PR target/65914 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 24fccfca53d0..2df91c48d4dd 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -42531,6 +42531,12 @@ ix86_rtx_costs (rtx x, int code_i, int outer_code_i, int opno, int *total, + rtx_cost (const1_rtx, outer_code, opno, speed)); return true; } + + /* The embedded comparison operand is completely free. */ + if (!general_operand (XEXP (x, 0), GET_MODE (XEXP (x, 0))) + && XEXP (x, 1) == const0_rtx) + *total = 0; + return false; case FLOAT_EXTEND: