tree-optimization/98685 - fix placement of extern converts
authorRichard Biener <rguenther@suse.de>
Fri, 15 Jan 2021 09:08:58 +0000 (10:08 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 15 Jan 2021 10:26:57 +0000 (11:26 +0100)
commit2ea6f4a377e51ed4d55cd8277f8c201ad66685f6
treea08c259910604c3f0a0c5ad39cf802bcd09c564b
parentc4eec1efae0cfdd9a1a50666876b28567fca1734
tree-optimization/98685 - fix placement of extern converts

Avoid advancing to the next stmt when inserting at region boundary
and deal with a vector def being not the only child.

2021-01-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/98685
* tree-vect-slp.c (vect_schedule_slp_node): Refactor handling
of vector extern defs.

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