https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107372
--- Comment #1 from Andreas Krebbel <krebbel at gcc dot gnu.org> --- Created attachment 53764 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53764&action=edit Experimental Fix Looks like the error while analyzing the data ref is not propagated to the upper layers to actually prevent the optimization. This patch fixes this for me.