forked from OSchip/llvm-project
[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:
parent
a000366d05
commit
38c6933dcc
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue