https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115652
--- Comment #9 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:ff6e8b7f09712bd7ddfcd2830b286421f23abef9 commit r15-1709-gff6e8b7f09712bd7ddfcd2830b286421f23abef9 Author: Richard Biener <rguent...@suse.de> Date: Fri Jun 28 13:29:21 2024 +0200 tree-optimization/115652 - more fixing of the fix The following addresses the corner case of an outer loop with an empty header where we end up asking for the BB of a NULL stmt by special-casing this case. PR tree-optimization/115652 * tree-vect-slp.cc (vect_schedule_slp_node): Handle the case where the outer loop header block is empty.