https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101419
--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #10) > Created attachment 51139 [details] > gcc12-pr101419.patch > > Full untested patch. I guess that's certainly what was intended (and after the patch more explicit). Whether it's good to not CSE any addresses in unrolled loop bodies is another question (but see my proposed pass order change which would fix this).