[llvm] 3ef271c - [SLP][NFC]Use MutableArrayRef instead of SmallVectorImpl& in param, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 09:47:17 PDT 2023
Author: Alexey Bataev
Date: 2023-10-18T09:47:07-07:00
New Revision: 3ef271c3d69304f27e23c93c62c4a78e9223dadd
URL: https://github.com/llvm/llvm-project/commit/3ef271c3d69304f27e23c93c62c4a78e9223dadd
DIFF: https://github.com/llvm/llvm-project/commit/3ef271c3d69304f27e23c93c62c4a78e9223dadd.diff
LOG: [SLP][NFC]Use MutableArrayRef instead of SmallVectorImpl& in param, NFC.
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 0aa9754aa11958b..76701dba5840af2 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -10131,7 +10131,7 @@ ResTy BoUpSLP::processBuildVector(const TreeEntry *E, Args &...Params) {
inversePermutation(E->ReorderIndices, ReorderMask);
if (!ReorderMask.empty())
reorderScalars(GatheredScalars, ReorderMask);
- auto FindReusedSplat = [&](SmallVectorImpl<int> &Mask) {
+ auto FindReusedSplat = [&](MutableArrayRef<int> Mask) {
if (!isSplat(E->Scalars) || none_of(E->Scalars, [](Value *V) {
return isa<UndefValue>(V) && !isa<PoisonValue>(V);
}))
More information about the llvm-commits
mailing list