https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100182
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- In addition to r7-1112 r8-3856 also added some similar peephole2s. I'm afraid I'm getting lost in them, in several other peephole2s there the store that is optimized away is an atomic store and that is quite certainly not a spill slot.