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!