https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127811
--- Comment #7 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:9ab2b161c7cb19d85f124ec2d30bec89169a4e05 commit r17-5200-g9ab2b161c7cb19d85f124ec2d30bec89169a4e05 Author: Richard Biener <[email protected]> Date: Wed Oct 14 14:52:43 2026 +0200 tree-optimization/127811 - revise previous fix for SLP scheduling With -fno-trapping-math we still attempt to inseret after the throwing external vector def. Instead of adjusting the assert make sure to clear last_stmt when that is external so we consistently insert at region boundary. PR tree-optimization/127811 * tree-vect-slp.cc (vect_schedule_slp_node): Revert last fix. Instead NULL last_stmt for external defs. * g++.dg/vect/pr127811-2.cc: New testcase.
