@@ -6885,8 +6885,7 @@ BoUpSLP::getReorderingData(const TreeEntry &TE, bool TopToBottom,
6885
6885
int Sz = TE.Scalars.size();
6886
6886
if (isSplat(TE.Scalars) && !allConstant(TE.Scalars) &&
6887
6887
count_if(TE.Scalars, IsaPred<UndefValue>) == Sz - 1) {
6888
- const auto *It =
6889
- find_if(TE.Scalars, [](Value *V) { return !isConstant(V); });
6888
+ const auto *It = find_if_not(TE.Scalars, isConstant);
6890
6889
if (It == TE.Scalars.begin())
6891
6890
return OrdersType();
6892
6891
auto *Ty = getWidenedType(TE.Scalars.front()->getType(), Sz);
@@ -15321,13 +15320,11 @@ BoUpSLP::isGatherShuffledSingleRegisterEntry(
15321
15320
if (TEUseEI.UserTE->State == TreeEntry::Vectorize &&
15322
15321
(TEUseEI.UserTE->getOpcode() != Instruction::PHI ||
15323
15322
TEUseEI.UserTE->isAltShuffle()) &&
15324
- all_of(TEUseEI.UserTE->Scalars,
15325
- [](Value *V) { return isUsedOutsideBlock(V); })) {
15323
+ all_of(TEUseEI.UserTE->Scalars, isUsedOutsideBlock)) {
15326
15324
if (UseEI.UserTE->State != TreeEntry::Vectorize ||
15327
15325
(UseEI.UserTE->getOpcode() == Instruction::PHI &&
15328
15326
!UseEI.UserTE->isAltShuffle()) ||
15329
- any_of(UseEI.UserTE->Scalars,
15330
- [](Value *V) { return !isUsedOutsideBlock(V); }))
15327
+ !all_of(UseEI.UserTE->Scalars, isUsedOutsideBlock))
15331
15328
continue;
15332
15329
}
15333
15330
0 commit comments