Skip to content

Commit 76b7ae7

Browse files
committed
[SLP][NFC]Remove std::placeholders:: qualifiers, NFC
1 parent 76b5fcb commit 76b7ae7

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21008,14 +21008,13 @@ bool SLPVectorizerPass::vectorizeStores(
2100821008
AnyProfitableGraph = false;
2100921009
unsigned StartIdx = std::distance(
2101021010
RangeSizes.begin(),
21011-
find_if(RangeSizes, std::bind(IsNotVectorized, Size >= MaxRegVF,
21012-
std::placeholders::_1)));
21011+
find_if(RangeSizes,
21012+
std::bind(IsNotVectorized, Size >= MaxRegVF, _1)));
2101321013
while (StartIdx < End) {
21014-
unsigned EndIdx =
21015-
std::distance(RangeSizes.begin(),
21016-
find_if(RangeSizes.drop_front(StartIdx),
21017-
std::bind(IsVectorized, Size >= MaxRegVF,
21018-
std::placeholders::_1)));
21014+
unsigned EndIdx = std::distance(
21015+
RangeSizes.begin(),
21016+
find_if(RangeSizes.drop_front(StartIdx),
21017+
std::bind(IsVectorized, Size >= MaxRegVF, _1)));
2101921018
unsigned Sz = EndIdx >= End ? End : EndIdx;
2102021019
for (unsigned Cnt = StartIdx; Cnt + Size <= Sz;) {
2102121020
if (!checkTreeSizes(RangeSizes.slice(Cnt, Size),
@@ -21085,16 +21084,15 @@ bool SLPVectorizerPass::vectorizeStores(
2108521084
if (Size > 2 && Res &&
2108621085
!all_of(RangeSizes.slice(Cnt, Size),
2108721086
std::bind(VFIsProfitable, Size >= MaxRegVF, TreeSize,
21088-
std::placeholders::_1))) {
21087+
_1))) {
2108921088
Cnt += Size;
2109021089
continue;
2109121090
}
2109221091
// Check for the very big VFs that we're not rebuilding same
2109321092
// trees, just with larger number of elements.
2109421093
if (Size > MaxRegVF && TreeSize > 1 &&
2109521094
all_of(RangeSizes.slice(Cnt, Size),
21096-
std::bind(FirstSizeSame, TreeSize,
21097-
std::placeholders::_1))) {
21095+
std::bind(FirstSizeSame, TreeSize, _1))) {
2109821096
Cnt += Size;
2109921097
while (Cnt != Sz && RangeSizes[Cnt].first == TreeSize)
2110021098
++Cnt;
@@ -21118,8 +21116,7 @@ bool SLPVectorizerPass::vectorizeStores(
2111821116
StartIdx = std::distance(
2111921117
RangeSizes.begin(),
2112021118
find_if(RangeSizes.drop_front(Sz),
21121-
std::bind(IsNotVectorized, Size >= MaxRegVF,
21122-
std::placeholders::_1)));
21119+
std::bind(IsNotVectorized, Size >= MaxRegVF, _1)));
2112321120
}
2112421121
if (!AnyProfitableGraph && Size >= MaxRegVF && has_single_bit(Size))
2112521122
break;
@@ -21140,8 +21137,7 @@ bool SLPVectorizerPass::vectorizeStores(
2114021137
End -
2114121138
std::distance(
2114221139
RangeSizes.begin(),
21143-
find_if(RangeSizes, std::bind(IsNotVectorized, true,
21144-
std::placeholders::_1))) +
21140+
find_if(RangeSizes, std::bind(IsNotVectorized, true, _1))) +
2114521141
1));
2114621142
unsigned VF = bit_ceil(CandidateVFs.front()) * 2;
2114721143
unsigned Limit =

0 commit comments

Comments
 (0)