https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109469
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:9cc16b95d5d63b18cbc0aa780ffb6b460c791351 commit r12-9411-g9cc16b95d5d63b18cbc0aa780ffb6b460c791351 Author: Richard Biener <rguent...@suse.de> Date: Tue Apr 11 16:06:12 2023 +0200 tree-optimization/109469 - SLP with returns-twice region start The following avoids an SLP region starting with a returns-twice call where we cannot insert stmts at the head. PR tree-optimization/109469 * tree-vect-slp.cc (vect_slp_function): Skip region starts with a returns-twice call. * gcc.dg/torture/pr109469.c: New testcase. (cherry picked from commit 2d7ad38707e1fd71193d440198cc0726092b9015)