@@ -21008,14 +21008,13 @@ bool SLPVectorizerPass::vectorizeStores(
21008
21008
AnyProfitableGraph = false;
21009
21009
unsigned StartIdx = std::distance(
21010
21010
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)));
21013
21013
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)));
21019
21018
unsigned Sz = EndIdx >= End ? End : EndIdx;
21020
21019
for (unsigned Cnt = StartIdx; Cnt + Size <= Sz;) {
21021
21020
if (!checkTreeSizes(RangeSizes.slice(Cnt, Size),
@@ -21085,16 +21084,15 @@ bool SLPVectorizerPass::vectorizeStores(
21085
21084
if (Size > 2 && Res &&
21086
21085
!all_of(RangeSizes.slice(Cnt, Size),
21087
21086
std::bind(VFIsProfitable, Size >= MaxRegVF, TreeSize,
21088
- std::placeholders:: _1))) {
21087
+ _1))) {
21089
21088
Cnt += Size;
21090
21089
continue;
21091
21090
}
21092
21091
// Check for the very big VFs that we're not rebuilding same
21093
21092
// trees, just with larger number of elements.
21094
21093
if (Size > MaxRegVF && TreeSize > 1 &&
21095
21094
all_of(RangeSizes.slice(Cnt, Size),
21096
- std::bind(FirstSizeSame, TreeSize,
21097
- std::placeholders::_1))) {
21095
+ std::bind(FirstSizeSame, TreeSize, _1))) {
21098
21096
Cnt += Size;
21099
21097
while (Cnt != Sz && RangeSizes[Cnt].first == TreeSize)
21100
21098
++Cnt;
@@ -21118,8 +21116,7 @@ bool SLPVectorizerPass::vectorizeStores(
21118
21116
StartIdx = std::distance(
21119
21117
RangeSizes.begin(),
21120
21118
find_if(RangeSizes.drop_front(Sz),
21121
- std::bind(IsNotVectorized, Size >= MaxRegVF,
21122
- std::placeholders::_1)));
21119
+ std::bind(IsNotVectorized, Size >= MaxRegVF, _1)));
21123
21120
}
21124
21121
if (!AnyProfitableGraph && Size >= MaxRegVF && has_single_bit(Size))
21125
21122
break;
@@ -21140,8 +21137,7 @@ bool SLPVectorizerPass::vectorizeStores(
21140
21137
End -
21141
21138
std::distance(
21142
21139
RangeSizes.begin(),
21143
- find_if(RangeSizes, std::bind(IsNotVectorized, true,
21144
- std::placeholders::_1))) +
21140
+ find_if(RangeSizes, std::bind(IsNotVectorized, true, _1))) +
21145
21141
1));
21146
21142
unsigned VF = bit_ceil(CandidateVFs.front()) * 2;
21147
21143
unsigned Limit =
0 commit comments