Skip to content

Commit

Permalink
[SLP][NFC]Use MutableArrayRef instead of SmallVectorImpl& in param, NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-bataev committed Oct 18, 2023
1 parent 708808e commit 3ef271c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}))
Expand Down

0 comments on commit 3ef271c

Please sign in to comment.