https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115528
--- Comment #30 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:2f83ea87ee328d337f87d4430861221be9babe1e commit r15-1582-g2f83ea87ee328d337f87d4430861221be9babe1e Author: Richard Biener <rguent...@suse.de> Date: Fri Jun 21 13:19:26 2024 +0200 tree-optimization/115528 - fix vect alignment analysis for outer loop vect For outer loop vectorization of a data reference in the inner loop we have to look at both steps to see if they preserve alignment. What is special for this testcase is that the outer loop step is one element but the inner loop step four and that we now use SLP and the vectorization factor is one. PR tree-optimization/115528 * tree-vect-data-refs.cc (vect_compute_data_ref_alignment): Make sure to look at both the inner and outer loop step behavior. * gfortran.dg/vect/pr115528.f: New testcase.