https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103237
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- So what we get is a double reduction with two loop-closed PHIs on the inner loop where one is not classified as double-reduction (because we work from the outer loop PHI to do that only). I think this case is simply not well supported and the easiest is to disallow it when analyzing the inner loop (because then we run into that duplicate LC PHI). Testing a patch to do that.