https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103966
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- __atomic_*/__sync_* loads and stores are (intentionally) MEM_VOLATILE_P, which is why combine gives up on them and similarly peephole2.