tree-optimization/97633 - fix SLP scheduling of single-node cycles
authorRichard Biener <rguenther@suse.de>
Fri, 30 Oct 2020 08:57:02 +0000 (09:57 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 30 Oct 2020 09:46:08 +0000 (10:46 +0100)
commitc0bfd9672e19caf08e45afeb4277f848488ced2b
tree642a29ab93daa78a76c13bc16834256c655c653c
parent7de23b8c536397117bbea04a722fa1b86564dd7c
tree-optimization/97633 - fix SLP scheduling of single-node cycles

This makes sure to update backedges in single-node cycles.

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

PR tree-optimization/97633
* tree-vect-slp.c (): Update backedges in single-node cycles.
Optimize processing of externals.

* g++.dg/vect/slp-pr97636.cc: New testcase.
* gcc.dg/vect/bb-slp-pr97633.c: Likewise.
gcc/testsuite/g++.dg/vect/slp-pr97636.cc [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/bb-slp-pr97633.c [new file with mode: 0644]
gcc/tree-vect-slp.c