From e09d1e3ff1616b4f25fbca8f64d65f046883b1fd Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Fri, 3 Apr 2026 07:32:34 +0100 Subject: [PATCH] [VPlan] Use not_equal_to to improve code (NFC) (#190262) --- llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp index a33743edb133..fd69759be0f4 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp @@ -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(Phis[0]->getStartValue());