[llvm] 2d7e5e2 - [LV] Remove unused OrigLoopID argument from completeLoopSekelton (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 07:39:23 PST 2022
Author: Florian Hahn
Date: 2022-11-11T15:39:08Z
New Revision: 2d7e5e29b767ec35a9160e56ca8d3b6124c3704f
URL: https://github.com/llvm/llvm-project/commit/2d7e5e29b767ec35a9160e56ca8d3b6124c3704f
DIFF: https://github.com/llvm/llvm-project/commit/2d7e5e29b767ec35a9160e56ca8d3b6124c3704f.diff
LOG: [LV] Remove unused OrigLoopID argument from completeLoopSekelton (NFC).
The argument is not used any longer and can be removed.
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 0a01b5f90182..41b12a6adf3d 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -624,7 +624,7 @@ class InnerLoopVectorizer {
/// Complete the loop skeleton by adding debug MDs, creating appropriate
/// conditional branches in the middle block, preparing the builder and
/// running the verifier. Return the preheader of the completed vector loop.
- BasicBlock *completeLoopSkeleton(MDNode *OrigLoopID);
+ BasicBlock *completeLoopSkeleton();
/// Collect poison-generating recipes that may generate a poison value that is
/// used after vectorization, even when their operands are not poison. Those
@@ -3200,7 +3200,7 @@ void InnerLoopVectorizer::createInductionResumeValues(
}
}
-BasicBlock *InnerLoopVectorizer::completeLoopSkeleton(MDNode *OrigLoopID) {
+BasicBlock *InnerLoopVectorizer::completeLoopSkeleton() {
// The trip counts should be cached by now.
Value *Count = getOrCreateTripCount(LoopVectorPreHeader);
Value *VectorTripCount = getOrCreateVectorTripCount(LoopVectorPreHeader);
@@ -3304,7 +3304,7 @@ InnerLoopVectorizer::createVectorizedLoopSkeleton() {
// Emit phis for the new starting index of the scalar loop.
createInductionResumeValues();
- return {completeLoopSkeleton(OrigLoopID), nullptr};
+ return {completeLoopSkeleton(), nullptr};
}
// Fix up external users of the induction variable. At this point, we are
@@ -7755,7 +7755,7 @@ EpilogueVectorizerMainLoop::createEpilogueVectorizedLoopSkeleton() {
// because the vplan in the second pass still contains the inductions from the
// original loop.
- return {completeLoopSkeleton(OrigLoopID), nullptr};
+ return {completeLoopSkeleton(), nullptr};
}
void EpilogueVectorizerMainLoop::printDebugTracesAtStart() {
@@ -7931,7 +7931,7 @@ EpilogueVectorizerEpilogueLoop::createEpilogueVectorizedLoopSkeleton() {
createInductionResumeValues({VecEpilogueIterationCountCheck,
EPI.VectorTripCount} /* AdditionalBypass */);
- return {completeLoopSkeleton(OrigLoopID), EPResumeVal};
+ return {completeLoopSkeleton(), EPResumeVal};
}
BasicBlock *
More information about the llvm-commits
mailing list