https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98854
--- Comment #9 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:c91db798ec65b3e55f2380ca1530ecb71544f1bb commit r11-6934-gc91db798ec65b3e55f2380ca1530ecb71544f1bb Author: Richard Biener <rguent...@suse.de> Date: Wed Jan 27 15:20:58 2021 +0100 tree-optimization/98854 - avoid some PHI BB vectorization This avoids cases of PHI node vectorization that just causes us to insert vector CTORs inside loops for values only required outside of the loop. 2021-01-27 Richard Biener <rguent...@suse.de> PR tree-optimization/98854 * tree-vect-slp.c (vect_build_slp_tree_2): Also build PHIs from scalars when the number of CTORs matches the number of children. * gcc.dg/vect/bb-slp-pr98854.c: New testcase.