https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117567
--- 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:f56343c5ea9a11fa740e0330ec121b826e349879 commit r15-5234-gf56343c5ea9a11fa740e0330ec121b826e349879 Author: Richard Biener <rguent...@suse.de> Date: Thu Nov 14 10:17:23 2024 +0100 tree-optimization/117567 - make SLP reassoc resilent against NULL lanes The following tries to make the SLP chain association code resilent against not present lanes (the other option would have been to disable it in this case). Not present lanes can now more widely appear as part of mask load SLP discovery when there is gaps involved. Requiring a present first lane shouldn't be a restriction since in unpermuted state all DR groups have their first lane not a gap. PR tree-optimization/117567 * tree-vect-slp.cc (vect_build_slp_tree_2): Handle not present lanes when doing re-association. * gcc.dg/torture/pr117567.c: New testcase.