[NFC][LoopVectorizer] Remove VF.isScalable() assertion from collectInstsToScalarize...
authorCaroline Concatto <caroline.concatto@arm.com>
Wed, 5 May 2021 14:20:16 +0000 (15:20 +0100)
committerCaroline Concatto <caroline.concatto@arm.com>
Tue, 20 Jul 2021 14:56:30 +0000 (15:56 +0100)
commitcf78995c4a1a608875a5ecf666067a9afb3e1274
tree955c68183fec27cc45327aa8bdc22b80dbd9550b
parent0977f31cecf8aa4ad1be72748179f4d6a902daf4
[NFC][LoopVectorizer] Remove VF.isScalable() assertion from collectInstsToScalarize and getInstructionCost

This patch removes the assertion when VF is scalable and replaces
getKnownMinValue() by getFixedValue(),  so it still guards the code against
scalable vector types.
The assertions were used to guarantee that getknownMinValue were not used for
scalable vectors.

Differential Revision: https://reviews.llvm.org/D106359
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp