[Bug tree-optimization/96633] missed optimization?
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 20 11:36:11 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96633
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Alexander Monakov from comment #2)
> Martin added me to CC so I assume he wants me to chime in.
Yes, you understood very well and thanks for the reply.
...
> With that out of the way: striving to get efficient branchless code on this
> code is not very valuable in practice, because the caller is likely to
> perform a conditional branch on the result anyway. So making isWhitespace
> branchless simply moves the misprediction cost to the caller, making the
> overall code slower.
That's very important observation!
More information about the Gcc-bugs
mailing list