https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106841
--- Comment #5 from CVS 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:e33e61d417eb5e981bb7d709f8681a2f55ed518a commit r13-2492-ge33e61d417eb5e981bb7d709f8681a2f55ed518a Author: Richard Biener <rguent...@suse.de> Date: Tue Sep 6 10:08:44 2022 +0200 tree-optimization/106841 - gather and hybrid SLP Hybrid SLP detection currently fails to consider a not direct offset operand of a scatter/gather operation. The following fixes this. PR tree-optimization/106841 * tree-vect-slp.cc (vect_detect_hybrid_slp): Also process scatter/gather offset. * g++.dg/vect/pr106841.cc: New testcase.