tree-optimization/95770 - fix SLP vectorized stmt placement compute
authorRichard Biener <rguenther@suse.de>
Mon, 22 Jun 2020 10:14:54 +0000 (12:14 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 22 Jun 2020 10:17:41 +0000 (12:17 +0200)
commitcf07eea8429c923b7eb884ffc1b267c80a0a839c
tree5c9e8711ab9a57ba8fdb02c6549202d2fbb96568
parentd32495261a8a9d35379180d8ad0bca693f06b104
tree-optimization/95770 - fix SLP vectorized stmt placement compute

This fixes the vectorized stmt placement compute for the case of
external defs.

2020-06-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95770
* tree-vect-slp.c (vect_schedule_slp_instance): Also consider
external defs.

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