https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97496
--- Comment #4 from CVS 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:a335f6f4ee5cb4f7dbfef52e17bf854ae42c1216 commit r11-4084-ga335f6f4ee5cb4f7dbfef52e17bf854ae42c1216 Author: Richard Biener <rguent...@suse.de> Date: Tue Oct 20 08:14:54 2020 +0200 tree-optimization/97496 - avoid SLP externs in patterns I forgot to guard the promotion to external for the case where the def is in a pattern. 2020-10-20 Richard Biener <rguent...@suse.de> PR tree-optimization/97496 * tree-vect-slp.c (vect_get_and_check_slp_defs): Guard extern promotion with not in pattern. * gcc.dg/vect/bb-slp-pr97496.c: New testcase.