https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83359
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 42830 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42830&action=edit gcc8-pr83359.patch In the mean time I wrote this patch. That said, LOOP_DIST_ALIAS seems quite fragile to me, unlike ifcvt added LOOP_VECTORIZED calls which go away in the very next pass, there are many passes in between ldist and vectorizer and I'd be worried that the calls could be cloned with other loop copying, moved and all other kinds of things, especially in graphite.