Skip to content

Commit 1ef0a56

Browse files
authored
[LV][NFC] Use foldTailWithEVL() (#171282)
1 parent 6061b90 commit 1ef0a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3701,7 +3701,7 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
37013701
bool ContainsScalableVF = MaxFactors.ScalableVF.isNonZero();
37023702
setTailFoldingStyles(ContainsScalableVF, UserIC);
37033703
if (foldTailByMasking()) {
3704-
if (getTailFoldingStyle() == TailFoldingStyle::DataWithEVL) {
3704+
if (foldTailWithEVL()) {
37053705
LLVM_DEBUG(
37063706
dbgs()
37073707
<< "LV: tail is folded with EVL, forcing unroll factor to be 1. Will "

0 commit comments

Comments
 (0)