[Bug tree-optimization/80874] gcc does not emit cmov for minmax

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 25 09:33:00 GMT 2017


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Are you sure a cmov (you'd need 2 of them) is a win?  cmov on Intel/AMD has
terrible latency, and often is a serious performance degradation, branches are
certainly much better if they can be well predicted, cmov can be only useful if
the branches can't be predicted well.


More information about the Gcc-bugs mailing list