https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87104
--- Comment #3 from eggert at cs dot ucla.edu --- (In reply to Andrew Pinski from comment #2) > This seems like a target issue ... Although the code generated is target-dependent, the performance problem is not limited to x86-64. x86 has the same problem, and I suspect other platforms do too. I'll attach the x86 assembler code, where 'f' has one more insn than 'g' does even though the two functions have identical behavior.