[llvm] 2427dc4 - [SLP][NFC] Remove unused PtrN parameter from analyzeConstantStrideCandidate() (#191567)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 11:31:16 PDT 2026
Author: Ryan Buchner
Date: 2026-04-16T11:31:11-07:00
New Revision: 2427dc449759b48ed88920e0768af82a2dce27ca
URL: https://github.com/llvm/llvm-project/commit/2427dc449759b48ed88920e0768af82a2dce27ca
DIFF: https://github.com/llvm/llvm-project/commit/2427dc449759b48ed88920e0768af82a2dce27ca.diff
LOG: [SLP][NFC] Remove unused PtrN parameter from analyzeConstantStrideCandidate() (#191567)
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index fd981afcaf581..73e79c5ca9a5b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2410,7 +2410,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).
@@ -7307,7 +7307,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
@@ -7700,7 +7700,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) ||
@@ -10833,9 +10833,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;
}
More information about the llvm-commits
mailing list