Skip to content

Commit c331045

Browse files
committed
[NFC] Simplify code
1 parent b34c7c0 commit c331045

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,8 +2430,7 @@ InnerLoopVectorizer::getOrCreateVectorTripCount(BasicBlock *InsertBlock) {
24302430

24312431
// Use original trip count as the vector trip count if use predicated EVL
24322432
// instructions for tail-folding.
2433-
if (VF.isVector() &&
2434-
Cost->getTailFoldingStyle() == TailFoldingStyle::DataWithEVL) {
2433+
if (VF.isVector() && Cost->foldTailWithEVL()) {
24352434
assert(!Cost->requiresScalarEpilogue(true) &&
24362435
"Use predicated EVL instructions for tail-folding does not allow "
24372436
"scalar epilogue");

0 commit comments

Comments
 (0)