fix ICE with BB vectorization of PHIs
authorRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2020 06:56:21 +0000 (08:56 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 9 Oct 2020 06:59:15 +0000 (08:59 +0200)
commit36500ed18aa89c31b56123aeae43f18fac950674
tree5faf694eac07536d34d8d74a95b6667ee6d7df0c
parentda9df699753d126e64d72c7ac0d0c0a552417b22
fix ICE with BB vectorization of PHIs

This fixes a vector CTOR insertion issue when we try to insert after
a PHI node.

2020-10-09  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_create_constant_vectors): Properly insert
after PHIs.

* gcc.dg/vect/bb-slp-phis-1.c: New testcase.
gcc/testsuite/gcc.dg/vect/bb-slp-phis-1.c [new file with mode: 0644]
gcc/tree-vect-slp.c