https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96717
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #6) > > With -O2 -fno-lifetime-dse we get the expected code back. I just saw another bug report filed about code quality with lifetime dse enabled in the last week.