HomePhabricator

[LoopVectorize][SVE] Remove assert for scalable vector in InnerLoopVectorizer…

Authored by CarolineConcatto on Apr 22 2021, 12:24 AM.

Description

[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