https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107115
--- Comment #8 from Alexander Monakov <amonakov at gcc dot gnu.org> --- Just optimizing out the redundant store seems difficult because on some targets scheduling is invoked from reorg (and it relies on alias sets). We need a solution that works for combine too — is it possible to invent a representation for a no-op in-place MEM "move" that only changes its alias set?