]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/114464 - verify types in recurrence vectorization
authorRichard Biener <rguenther@suse.de>
Tue, 26 Mar 2024 08:39:30 +0000 (09:39 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 26 Mar 2024 09:38:04 +0000 (10:38 +0100)
commit226a220d0056396e825e12435cc0da52cbd5ac56
tree71b540fbe63967bc5d710649bba85236f6dea05b
parent94b91b2786531ed8e2d07a6ad1191b5dfa0141e5
tree-optimization/114464 - verify types in recurrence vectorization

The following adds missing verification of vector type compatibility
to recurrence vectorization.

PR tree-optimization/114464
* tree-vect-loop.cc (vectorizable_recurr): Verify the latch
vector type is compatible with what we chose for the recurrence.

* g++.dg/vect/pr114464.cc: New testcase.
gcc/testsuite/g++.dg/vect/pr114464.cc [new file with mode: 0644]
gcc/tree-vect-loop.cc