[llvm] adfe54f - [VPlan] Directly check VectorizingEpilogue in ::executePlan (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 9 14:21:36 PST 2024
Author: Florian Hahn
Date: 2024-12-09T22:21:25Z
New Revision: adfe54f7dabe935305378ce2c915760ddce2cc00
URL: https://github.com/llvm/llvm-project/commit/adfe54f7dabe935305378ce2c915760ddce2cc00
DIFF: https://github.com/llvm/llvm-project/commit/adfe54f7dabe935305378ce2c915760ddce2cc00.diff
LOG: [VPlan] Directly check VectorizingEpilogue in ::executePlan (NFC).
Directly check VectorizingEpilogue which directly indicates that the
epilogue is vectorized.
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 16b84bf6a7bd51..f0122d62d19edb 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7829,7 +7829,7 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
}
TargetTransformInfo::UnrollingPreferences UP;
TTI.getUnrollingPreferences(L, *PSE.getSE(), UP, ORE);
- if (!UP.UnrollVectorizedLoop || CanonicalIVStartValue)
+ if (!UP.UnrollVectorizedLoop || VectorizingEpilogue)
addRuntimeUnrollDisableMetaData(L);
// 3. Fix the vectorized code: take care of header phi's, live-outs,
More information about the llvm-commits
mailing list