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

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 23 07:54:00 GMT 2017


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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 42437
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42437&action=edit
Reproducer (micro benchmark)

Confirmed, I'm attaching micro-benchmark that I run on my Haswell machine.
In time between GCC 6.x and current trunk we first improved performance in
r239414 from 1.392704s -> 1.228814s. Then we significantly regressed in r242832
from 1.209454s -> 1.929302s.


More information about the Gcc-bugs mailing list