Skip to content

Commit 194b50e

Browse files
committed
[NFC] Simplify code
1 parent e519717 commit 194b50e

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
@@ -2431,8 +2431,7 @@ InnerLoopVectorizer::getOrCreateVectorTripCount(BasicBlock *InsertBlock) {
24312431

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

0 commit comments

Comments
 (0)