https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115508
--- Comment #14 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:65e72b95c63a5501cf1482f3814ae8c8e672bf06 commit r15-1375-g65e72b95c63a5501cf1482f3814ae8c8e672bf06 Author: Richard Biener <rguent...@suse.de> Date: Mon Jun 17 14:36:56 2024 +0200 tree-optimization/115508 - fix ICE with SLP scheduling and extern vector When there's a permute after an extern vector we can run into a case that didn't consider the scheduled node being a permute which lacks a representative. PR tree-optimization/115508 * tree-vect-slp.cc (vect_schedule_slp_node): Guard check on representative. * gcc.target/i386/pr115508.c: New testcase.