File tree 1 file changed +6
-9
lines changed 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1430,19 +1430,16 @@ bool MFMAExpInterleaveOpt::analyzeDAG(const SIInstrInfo *TII) {
1430
1430
if (!(TempExp && TempMFMA))
1431
1431
return false ;
1432
1432
1433
- HasChainBetweenCvt =
1434
- std::find_if ((*TempExp)->Succs .begin (), (*TempExp)->Succs .end (),
1435
- [&isCvt](SDep &Succ) {
1436
- return isCvt (Succ.getSUnit ()->getInstr ()->getOpcode ());
1437
- }) == (*TempExp)->Succs .end ();
1433
+ HasChainBetweenCvt = none_of ((*TempExp)->Succs , [&isCvt](SDep &Succ) {
1434
+ return isCvt (Succ.getSUnit ()->getInstr ()->getOpcode ());
1435
+ });
1438
1436
1439
1437
// Count the number of MFMAs that are reached by an EXP
1440
1438
for (auto &SuccSU : MFMAPipeCands) {
1441
1439
if (MFMAPipeSUs.size () &&
1442
- std::find_if (MFMAPipeSUs.begin (), MFMAPipeSUs.end (),
1443
- [&SuccSU](SUnit *PotentialMatch) {
1444
- return PotentialMatch->NodeNum == SuccSU->NodeNum ;
1445
- }) != MFMAPipeSUs.end ())
1440
+ any_of (MFMAPipeSUs, [&SuccSU](SUnit *PotentialMatch) {
1441
+ return PotentialMatch->NodeNum == SuccSU->NodeNum ;
1442
+ }))
1446
1443
continue ;
1447
1444
1448
1445
for (auto &PredSU : ExpPipeCands) {
You can’t perform that action at this time.
0 commit comments