https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100778
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1c2e5ab1468d959200334f2f5039d8d6af01f9fb commit r11-8721-g1c2e5ab1468d959200334f2f5039d8d6af01f9fb Author: Richard Biener <rguent...@suse.de> Date: Fri May 28 14:26:06 2021 +0200 tree-optimization/100778 - avoid cross-BB vectorization of trapping op This avoids vectorizing a possibly trapping operation when lanes are handled in different BBs. I spotted this when working on the originally reported issue in PR100778. 2021-05-28 Richard Biener <rguent...@suse.de> PR tree-optimization/100778 * tree-vect-slp.c (vect_build_slp_tree_1): Prevent possibly trapping ops in different BBs. * gcc.dg/vect/bb-slp-pr100778-1.c: New testcase. (cherry picked from commit f7a07f5a5d8065e7f11133dd1f4ad3510ab2195b)