https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102733
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #1) > RTL level DSE removes the first store. I suspect dse.c does not check > ADDR_SPACE_GENERIC_P. I mean MEM_ADDR_SPACE. And yes it looks like it does not check MEM_ADDR_SPACE .... There could be other places in the RTL level which does not check MEM_ADDR_SPACE either.