https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113073
--- 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:aa2a48984c3d8c7a6a6da10d924e030b141b44cd commit r14-6683-gaa2a48984c3d8c7a6a6da10d924e030b141b44cd Author: Richard Biener <rguent...@suse.de> Date: Tue Dec 19 09:58:03 2023 +0100 tree-optimization/113073 - amend PR112736 fix The PR112736 testcase fails on RISC-V because the aligned exception uses the wrong check. The alignment support scheme can be dr_aligned even when the access isn't aligned to the vector size but some targets are happy with element alignment. The following fixes that. PR tree-optimization/113073 * tree-vect-stmts.cc (vectorizable_load): Properly ensure to exempt only vector-size aligned overreads.