https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97347
--- 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:5d708c6315e0fc57992cda7b466a5a9877ced4e3 commit r11-3747-g5d708c6315e0fc57992cda7b466a5a9877ced4e3 Author: Richard Biener <rguent...@suse.de> Date: Fri Oct 9 10:19:38 2020 +0200 tree-optimization/97347 - fix another SLP constant insertion issue Just use edge insertion which will appropriately handle the situation from botan. 2020-10-09 Richard Biener <rguent...@suse.de> PR tree-optimization/97347 * tree-vect-slp.c (vect_create_constant_vectors): Use edge insertion when inserting on the fallthru edge, appropriately insert at the start of BBs when inserting after PHIs. * g++.dg/vect/pr97347.cc: New testcase.