[llvm] 85327f3 - [SLP][NFC]Make clusterSortPtrAccesses static.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 7 13:24:37 PDT 2023
Author: Alexey Bataev
Date: 2023-04-07T13:24:24-07:00
New Revision: 85327f307bd7cdc476e0d078c13f9c7c47341122
URL: https://github.com/llvm/llvm-project/commit/85327f307bd7cdc476e0d078c13f9c7c47341122
DIFF: https://github.com/llvm/llvm-project/commit/85327f307bd7cdc476e0d078c13f9c7c47341122.diff
LOG: [SLP][NFC]Make clusterSortPtrAccesses static.
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 87b819a65138..c0c080abf625 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -3929,9 +3929,9 @@ static LoadsState canVectorizeLoads(ArrayRef<Value *> VL, const Value *VL0,
return LoadsState::Gather;
}
-bool clusterSortPtrAccesses(ArrayRef<Value *> VL, Type *ElemTy,
- const DataLayout &DL, ScalarEvolution &SE,
- SmallVectorImpl<unsigned> &SortedIndices) {
+static bool clusterSortPtrAccesses(ArrayRef<Value *> VL, Type *ElemTy,
+ const DataLayout &DL, ScalarEvolution &SE,
+ SmallVectorImpl<unsigned> &SortedIndices) {
assert(llvm::all_of(
VL, [](const Value *V) { return V->getType()->isPointerTy(); }) &&
"Expected list of pointer operands.");
More information about the llvm-commits
mailing list