tree-optimization/97347 - fix another SLP constant insertion issue
authorRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2020 08:19:38 +0000 (10:19 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2020 09:28:15 +0000 (11:28 +0200)
commit5d708c6315e0fc57992cda7b466a5a9877ced4e3
tree540e36e6e80f588bc3eacd551c24129cbc552d30
parent1cde5d85bec20877bed063fc0046b9885231a0ae
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  <rguenther@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.
gcc/testsuite/g++.dg/vect/pr97347.cc [new file with mode: 0644]
gcc/tree-vect-slp.c