https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99863
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Though, we don't add the multiple stores case to active_local_stores and all the replace_read calls are from the active_local_stores chain. So I think the above patch should DTRT.