[llvm] 1ef0a56 - [LV][NFC] Use foldTailWithEVL() (#171282)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 9 00:58:58 PST 2025
Author: Pengcheng Wang
Date: 2025-12-09T16:58:53+08:00
New Revision: 1ef0a56b55e69cfe8f43b32688c9ce33f31b1969
URL: https://github.com/llvm/llvm-project/commit/1ef0a56b55e69cfe8f43b32688c9ce33f31b1969
DIFF: https://github.com/llvm/llvm-project/commit/1ef0a56b55e69cfe8f43b32688c9ce33f31b1969.diff
LOG: [LV][NFC] Use foldTailWithEVL() (#171282)
Added:
Modified:
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 8ff6fd4d9c0be..15d0fa41bd902 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -3701,7 +3701,7 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
bool ContainsScalableVF = MaxFactors.ScalableVF.isNonZero();
setTailFoldingStyles(ContainsScalableVF, UserIC);
if (foldTailByMasking()) {
- if (getTailFoldingStyle() == TailFoldingStyle::DataWithEVL) {
+ if (foldTailWithEVL()) {
LLVM_DEBUG(
dbgs()
<< "LV: tail is folded with EVL, forcing unroll factor to be 1. Will "
More information about the llvm-commits
mailing list