https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118405
--- Comment #4 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:31c3c1a83fd885b4687c9f6f7acd68af76d758d3 commit r15-6888-g31c3c1a83fd885b4687c9f6f7acd68af76d758d3 Author: Richard Biener <rguent...@suse.de> Date: Mon Jan 13 10:15:10 2025 +0100 tree-optimization/118405 - ICE with vector(1) T vs T load When vectorizing a load we are now checking alignment before emitting a vector(1) T load instead of blindly assuming it's OK when we had a scalar T load. For reasons we're not handling alignment computation optimally here but we shouldn't ICE when we fall back to loads of T. The following ensures the IL remains correct by emitting VIEW_CONVERT from T to vector(1) T when needed. It also removes an earlier fix done in r9-382-gbb4e47476537f6 for the same issue with VMAT_ELEMENTWISE. PR tree-optimization/118405 * tree-vect-stmts.cc (vectorizable_load): When we fall back to scalar loads make sure we properly convert to vector(1) T when there was only a single vector element.