https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82436
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Fri Oct 20 11:18:00 2017 New Revision: 253931 URL: https://gcc.gnu.org/viewcvs?rev=253931&root=gcc&view=rev Log: 2017-10-20 Richard Biener <rguent...@suse.de> Backport from mainline 2017-10-06 Richard Biener <rguent...@suse.de> PR tree-optimization/82436 * tree-vect-slp.c (vect_supported_load_permutation_p): More conservatively choose the vectorization factor when checking whether we can perform the required load permutation. (vect_transform_slp_perm_load): Assert when we may not fail. * gcc.dg/vect/pr82436.c: New testcase. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/vect/pr82436.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-vect-slp.c