tree-optimization/80928 - SLP vectorize nested loop induction
authorRichard Biener <rguenther@suse.de>
Tue, 3 Nov 2020 10:52:47 +0000 (11:52 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 3 Nov 2020 12:33:37 +0000 (13:33 +0100)
commitac6affba97130bcbffb21bd9f8ca53c7aac89551
treea783ee9359c945300597edd7cd63367348d3d224
parenta562d44924489d2e82dc61fca4607ab38061b375
tree-optimization/80928 - SLP vectorize nested loop induction

This adds SLP vectorization of nested inductions.

2020-11-03  Richard Biener <rguenther@suse.de>

PR tree-optimization/80928
* tree-vect-loop.c (vectorizable_induction): SLP vectorize
nested inductions.

* gcc.dg/vect/vect-outer-slp-2.c: New testcase.
* gcc.dg/vect/vect-outer-slp-3.c: Likewise.
gcc/testsuite/gcc.dg/vect/vect-outer-slp-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-outer-slp-3.c [new file with mode: 0644]
gcc/tree-vect-loop.c