tree-optimization/97615 - avoid creating externals from patterns
authorRichard Biener <rguenther@suse.de>
Wed, 28 Oct 2020 12:21:53 +0000 (13:21 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 28 Oct 2020 14:04:06 +0000 (15:04 +0100)
commitb626b00823af9ca9ab619fe13d1e8703a3101dab
tree253092dae04e57d843f1dbe6856197d75c6947c9
parent616351b897c834500e685f4ab6ece4d82b506d29
tree-optimization/97615 - avoid creating externals from patterns

The previous change missed to check for patterns again, the following
corrects that.

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

PR tree-optimization/97615
* tree-vect-slp.c (vect_build_slp_tree_2): Do not build
an external from pattern defs.

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