[VPlan] Use not_equal_to to improve code (NFC) (#190262)

This commit is contained in:
Ramkumar Ramachandra 2026-04-03 07:32:34 +01:00 committed by GitHub
parent a52a504e69
commit e09d1e3ff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2165,7 +2165,7 @@ static bool tryToReplaceALMWithWideALM(VPlan &Plan, ElementCount VF,
}
}
assert(all_of(Phis, [](VPActiveLaneMaskPHIRecipe *Phi) { return Phi; }) &&
assert(all_of(Phis, not_equal_to(nullptr)) &&
"Expected one VPActiveLaneMaskPHIRecipe for each unroll part");
auto *EntryALM = cast<VPInstruction>(Phis[0]->getStartValue());