[llvm] 9df153b - [LV] Remove unused requiresScalarEpilogue function. nfc (#135341)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 13 23:16:08 PDT 2025
Author: Mel Chen
Date: 2025-04-14T14:16:04+08:00
New Revision: 9df153bc146eab7e6c48d5083acb87a6d5c42394
URL: https://github.com/llvm/llvm-project/commit/9df153bc146eab7e6c48d5083acb87a6d5c42394
DIFF: https://github.com/llvm/llvm-project/commit/9df153bc146eab7e6c48d5083acb87a6d5c42394.diff
LOG: [LV] Remove unused requiresScalarEpilogue function. nfc (#135341)
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 0acca63503afa..a28cda9fe62b3 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1373,21 +1373,6 @@ class LoopVectorizationCostModel {
return false;
}
- /// Returns true if we're required to use a scalar epilogue for at least
- /// the final iteration of the original loop for all VFs in \p Range.
- /// A scalar epilogue must either be required for all VFs in \p Range or for
- /// none.
- bool requiresScalarEpilogue(VFRange Range) const {
- auto RequiresScalarEpilogue = [this](ElementCount VF) {
- return requiresScalarEpilogue(VF.isVector());
- };
- bool IsRequired = all_of(Range, RequiresScalarEpilogue);
- assert(
- (IsRequired || none_of(Range, RequiresScalarEpilogue)) &&
- "all VFs in range must agree on whether a scalar epilogue is required");
- return IsRequired;
- }
-
/// Returns true if a scalar epilogue is not allowed due to optsize or a
/// loop hint annotation.
bool isScalarEpilogueAllowed() const {
More information about the llvm-commits
mailing list