[LV] Simplify lambda in all_of to directly return hasVF() result. (NFC)

The if in the lambda is not necessary. We can directly return the result
of hasVF.
This commit is contained in:
Florian Hahn 2021-01-05 10:30:48 +00:00
parent a000366d05
commit 38c6933dcc
No known key found for this signature in database
GPG Key ID: 61D7554B5CECDC0D
1 changed files with 1 additions and 3 deletions

View File

@ -274,9 +274,7 @@ public:
bool hasPlanWithVFs(const ArrayRef<ElementCount> VFs) const {
return any_of(VPlans, [&](const VPlanPtr &Plan) {
return all_of(VFs, [&](const ElementCount &VF) {
if (Plan->hasVF(VF))
return true;
return false;
return Plan->hasVF(VF);
});
});
}