[llvm] [LV] Remove unused requiresScalarEpilogue function. nfc (PR #135341)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 03:02:16 PDT 2025
https://github.com/Mel-Chen created https://github.com/llvm/llvm-project/pull/135341
None
>From c1fe35dd27c94bbdbf02fb2fec2fbba4828b7e9a Mon Sep 17 00:00:00 2001
From: Mel Chen <mel.chen at sifive.com>
Date: Fri, 11 Apr 2025 02:54:09 -0700
Subject: [PATCH] [LV] Remove unused requiresScalarEpilogue function. nfc
---
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index a4d546f698d5f..d1ec4c63c32ca 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