Skip to content

Commit 3ef271c

Browse files
committed
[SLP][NFC]Use MutableArrayRef instead of SmallVectorImpl& in param, NFC.
1 parent 708808e commit 3ef271c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10131,7 +10131,7 @@ ResTy BoUpSLP::processBuildVector(const TreeEntry *E, Args &...Params) {
1013110131
inversePermutation(E->ReorderIndices, ReorderMask);
1013210132
if (!ReorderMask.empty())
1013310133
reorderScalars(GatheredScalars, ReorderMask);
10134-
auto FindReusedSplat = [&](SmallVectorImpl<int> &Mask) {
10134+
auto FindReusedSplat = [&](MutableArrayRef<int> Mask) {
1013510135
if (!isSplat(E->Scalars) || none_of(E->Scalars, [](Value *V) {
1013610136
return isa<UndefValue>(V) && !isa<PoisonValue>(V);
1013710137
}))

0 commit comments

Comments
 (0)