https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79904
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40907 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40907&action=edit gcc7-pr79904.patch Untested optimization that fixes the original testcase, but doesn't the one without uniform vector.