tree-optimization/97558 - compute vectype for SLP nested cycles
authorRichard Biener <rguenther@suse.de>
Mon, 2 Nov 2020 10:09:56 +0000 (11:09 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 2 Nov 2020 11:34:00 +0000 (12:34 +0100)
commit4c198ddff83744f8b7bf24306ed1e6b889c44044
treefa6e8f77816996af9e9159083fec5e1f09d465c4
parentf3a3327fe3d4e20a8fe863c2a3ad949864191f5d
tree-optimization/97558 - compute vectype for SLP nested cycles

This makes sure to compute the vector type for invariant SLP children
of nested cycles.

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

PR tree-optimization/97558
* tree-vect-loop.c (vectorizable_reduction): For nested SLP
cycles compute invariant operands vector type.

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