https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79338
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40665 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40665&action=edit gcc7-pr79338.patch Untested fix. I admit I don't know much what the code is doing, but it is clear the vectorizer doesn't allow concurrent uses of vect_analyze_loop_form on overlapping loops, because that function e.g. allocates stmt info for each statement in the loop. This patch attempts to defer the work where the inner loop vinfo is needed until after the outer loop's vinfo is removed. I don't see any differences in the outer-4.c dumps.