[llvm] [SLP][NFC] Remove unused PtrN parameter from analyzeConstantStrideCandidate() (PR #191567)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 16:13:16 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Ryan Buchner (bababuck)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/191567.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (+6-6)
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index cd23112db1e69..4466caacbd6cf 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2345,7 +2345,7 @@ class slpvectorizer::BoUpSLP {
bool analyzeConstantStrideCandidate(
const ArrayRef<Value *> PointerOps, Type *ElemTy, Align Alignment,
const SmallVectorImpl<unsigned> &SortedIndices, const int64_t Diff,
- Value *Ptr0, Value *PtrN, StridedPtrInfo &SPtrInfo) const;
+ Value *Ptr0, StridedPtrInfo &SPtrInfo) const;
/// Return true if an array of scalar loads can be replaced with a strided
/// load (with run-time stride).
@@ -7195,7 +7195,7 @@ bool BoUpSLP::isStridedLoad(ArrayRef<Value *> PointerOps, Type *ScalarTy,
bool BoUpSLP::analyzeConstantStrideCandidate(
const ArrayRef<Value *> PointerOps, Type *ScalarTy, Align Alignment,
const SmallVectorImpl<unsigned> &SortedIndices, const int64_t Diff,
- Value *Ptr0, Value *PtrN, StridedPtrInfo &SPtrInfo) const {
+ Value *Ptr0, StridedPtrInfo &SPtrInfo) const {
const size_t Sz = PointerOps.size();
SmallVector<int64_t> SortedOffsetsFromBase(Sz);
// Go through `PointerOps` in sorted order and record offsets from
@@ -7587,7 +7587,7 @@ BoUpSLP::LoadsState BoUpSLP::canVectorizeLoads(
cast<LoadInst>(Order.empty() ? VL.front() : VL[Order.front()])
->getAlign();
if (analyzeConstantStrideCandidate(PointerOps, ScalarTy, Alignment, Order,
- Diff, Ptr0, PtrN, SPtrInfo))
+ Diff, Ptr0, SPtrInfo))
return LoadsState::StridedVectorize;
}
if (!TTI->isLegalMaskedGather(VecTy, CommonAlignment) ||
@@ -10721,9 +10721,9 @@ BoUpSLP::TreeEntry::EntryState BoUpSLP::getScalarsVectorizationState(
// Check that the sorted pointer operands are consecutive.
if (static_cast<uint64_t>(*Dist) == VL.size() - 1)
return TreeEntry::Vectorize;
- if (EnableStridedStores && analyzeConstantStrideCandidate(
- PointerOps, ScalarTy, CommonAlignment,
- CurrentOrder, *Dist, Ptr0, PtrN, SPtrInfo))
+ if (EnableStridedStores &&
+ analyzeConstantStrideCandidate(PointerOps, ScalarTy, CommonAlignment,
+ CurrentOrder, *Dist, Ptr0, SPtrInfo))
return TreeEntry::StridedVectorize;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/191567
More information about the llvm-commits
mailing list