https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106804
--- Comment #3 from anthony.mikh at yandex dot ru --- (In reply to Andrew Pinski from comment #2) > Clang use of cmov also might produce worse code That's exactly why I wrote "seemingly worse". However, the approach used by clang uses less registers and this can impact codegen even if this function is inlined.