https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127811
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:6b41a6a73ef8f39ac913c0224a2c23b67f2a0665 commit r17-5090-g6b41a6a73ef8f39ac913c0224a2c23b67f2a0665 Author: Richard Biener <[email protected]> Date: Mon Oct 12 10:05:58 2026 +0200 tree-optimization/127811 - ICE with external vector def from control stmt When an external vector def defined by a control statement is scheduled we correctly place it. But when we later re-run the placing during transform we look at the actual vector def and assert before we are eventually adjusting the location again. Mind we cannot simply re-use the computed schedule, so adjust the assert to treat externs the same as !last_stmt. PR tree-optimization/127811 * tree-vect-slp.cc (vect_schedule_slp_node): Allow extern last_stmt during transform. * g++.dg/vect/pr127811.cc: New testcase.
