https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116818
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b1c7095a1da11d2543222d98243d10f9cc9823ce commit r15-3916-gb1c7095a1da11d2543222d98243d10f9cc9823ce Author: Richard Biener <rguent...@suse.de> Date: Mon Sep 23 15:24:01 2024 +0200 tree-optimization/116818 - try VMAT_GATHER_SCATTER also for SLP When not doing SLP and we end up with VMAT_ELEMENTWISE we consider using strided loads, aka VMAT_GATHER_SCATTER. The following moves this logic down to also apply to SLP where we now can end up using VMAT_ELEMENTWISE as well. PR tree-optimization/116818 * tree-vect-stmts.cc (get_group_load_store_type): Consider VMAT_GATHER_SCATTER instead of VMAT_ELEMENTWISE also for SLP. (vectorizable_load): For single-lane VMAT_GATHER_SCATTER also ignore permutations.