https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80770
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |rtl-optimization
--- Comment #5 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Changing to rtl-optimization as the code leaving the gimple path looks optimal.
Leaving open as the rtl optimizers/target bits clearly could be improved for
fb1:
movzbl (%rdi), %eax
movl %eax, %edx
andl $-2, %eax
andl $1, %edx
xorl $1, %edx
orl %edx, %eax
movb %al, (%rdi)
ret
Which it could just be a single bit flip and store the result out.