tree-optimization/97496 - avoid SLP externs in patterns
authorRichard Biener <rguenther@suse.de>
Tue, 20 Oct 2020 06:14:54 +0000 (08:14 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 20 Oct 2020 07:03:02 +0000 (09:03 +0200)
commita335f6f4ee5cb4f7dbfef52e17bf854ae42c1216
treeea2882c844e2c7b779a31391a984fc052ca4ecfd
parent57fa4146eba12b9c51cd9c2f84dc096997578c51
tree-optimization/97496 - avoid SLP externs in patterns

I forgot to guard the promotion to external for the case where the
def is in a pattern.

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

PR tree-optimization/97496
* tree-vect-slp.c (vect_get_and_check_slp_defs): Guard extern
promotion with not in pattern.

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