[Bug target/82666] [7/8 regression]: sum += (x>128 ? x : 0) puts the cmov on the critical path (at -O2)

aldyh at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 16 20:29:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82666

Aldy Hernandez <aldyh at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aldyh at gcc dot gnu.org

--- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
I haven't looked deeply into this, but prior to Richi's PRE patch in r239414 we
had a CMOV instruction.  So if anything, Richi's patch removes the problematic
instruction.  It is with Bernd's patch tweaking costs in r242832 that we get
the CMOV again.

Could Bernd or someone else take a look at the cost patch to see if it's
something  simple that backend experts can tackle?


More information about the Gcc-bugs mailing list