This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]