https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79920
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Thu Jun 21 11:18:50 2018 New Revision: 261842 URL: https://gcc.gnu.org/viewcvs?rev=261842&root=gcc&view=rev Log: 2018-06-21 Richard Biener <rguent...@suse.de> Backport from mainline 2017-09-06 Richard Biener <rguent...@suse.de> PR tree-optimization/82108 * tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment for gap in the non-permutation SLP case. * gcc.dg/vect/pr82108.c: New testcase. 2017-06-18 Richard Biener <rguent...@suse.de> PR tree-optimization/81410 * tree-vect-stmts.c (vectorizable_load): Properly adjust for the gap in the ! slp_perm SLP case after each group. * gcc.dg/vect/pr81410.c: New testcase. 2017-03-08 Richard Biener <rguent...@suse.de> PR tree-optimization/79920 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline with ncopies == 1 to ... (vect_transform_slp_perm_load): ... here. Properly compute all element loads by iterating VF times over the group. Do not handle ncopies (computed in a broken way) in vect_create_mask_and_perm. * gcc.dg/vect/pr79920.c: New testcase. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/vect/pr79920.c branches/gcc-6-branch/gcc/testsuite/gcc.dg/vect/pr81410.c branches/gcc-6-branch/gcc/testsuite/gcc.dg/vect/pr82108.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/tree-vect-slp.c branches/gcc-6-branch/gcc/tree-vect-stmts.c