We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b34c7c0 commit c331045Copy full SHA for c331045
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -2430,8 +2430,7 @@ InnerLoopVectorizer::getOrCreateVectorTripCount(BasicBlock *InsertBlock) {
2430
2431
// Use original trip count as the vector trip count if use predicated EVL
2432
// instructions for tail-folding.
2433
- if (VF.isVector() &&
2434
- Cost->getTailFoldingStyle() == TailFoldingStyle::DataWithEVL) {
+ if (VF.isVector() && Cost->foldTailWithEVL()) {
2435
assert(!Cost->requiresScalarEpilogue(true) &&
2436
"Use predicated EVL instructions for tail-folding does not allow "
2437
"scalar epilogue");
0 commit comments