[LoopVectorize][SVE] Remove assert for scalable vector in InnerLoopVectorizer::fixRed...
authorCaroline Concatto <caroline.concatto@arm.com>
Thu, 22 Apr 2021 07:24:40 +0000 (08:24 +0100)
committerCaroline Concatto <caroline.concatto@arm.com>
Fri, 7 May 2021 08:37:37 +0000 (09:37 +0100)
commitcf06c8eee3a5ac6172e77abe5d7547554e6a6620
tree9ca97a5c9f1d59a5e619fca2957a489ae0c99889
parentd2b2ad32b76989b68e7b525e7484e25b0f0cc4e6
[LoopVectorize][SVE] Remove assert for scalable vector in InnerLoopVectorizer::fixReduction

The function fixReduction used to assert/crash for scalable vector when
a vector reduce could be done with a smaller vector.
This patch removes this assertion as it is safe to use scalable vector for
vector reduce and truncate.

Differential Revision: https://reviews.llvm.org/D101260
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/scalable-reduction-inloop.ll [new file with mode: 0644]