re PR fortran/92094 (ice in vect_transform_stmt at tree-vect-stmts.c:10921)
authorRichard Biener <rguenther@suse.de>
Tue, 15 Oct 2019 10:09:10 +0000 (10:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 15 Oct 2019 10:09:10 +0000 (10:09 +0000)
commitc30587c0200f52f8845a5aea21bd7bef6cbe0bf4
tree30bc1414aafb9c90a81b1222e2bf97e040fec114
parenta7c4d6d1c29b62d97014d30848ee542e309dbe9c
re PR fortran/92094 (ice in vect_transform_stmt at tree-vect-stmts.c:10921)

2019-10-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92094
* tree-vect-loop.c (vectorizable_reduction): For nested cycles
do not adjust the reduction definition def type.
* tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
defines the latch argument of the PHI.

* gfortran.dg/pr92094.f90: New testcase.

From-SVN: r276987
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr92094.f90 [new file with mode: 0644]
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c