https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69882
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Mon Feb 22 14:53:17 2016 New Revision: 233605 URL: https://gcc.gnu.org/viewcvs?rev=233605&root=gcc&view=rev Log: 2016-02-22 Richard Biener <rguent...@suse.de> PR tree-optimization/69882 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly preserve permutations present because of gaps. (vect_supported_load_permutation_p): Always continue checking permutations after vect_attempt_slp_rearrange_stmts. * gfortran.dg/vect/pr69882.f90: New testcase. Added: trunk/gcc/testsuite/gfortran.dg/vect/pr69882.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-slp.c