[llvm] [VPlan] Assert vplan-verify-each result and get verifier passing (PR #182254)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 08:10:04 PST 2026


================
@@ -72,8 +72,10 @@ struct VPlanTransforms {
           dbgs() << Plan << '\n';
       }
 #endif
-      if (VerifyEachVPlan && EnableVerify)
-        verifyVPlanIsValid(Plan);
+      if (VerifyEachVPlan && EnableVerify) {
+        [[maybe_unused]] bool IsValid = verifyVPlanIsValid(Plan);
+        assert(IsValid && "VPlan is invalid");
----------------
lukel97 wrote:

Switched to report_fatal_error in 9401b48051b8. I copied the same error format from the IR verifier.

https://github.com/llvm/llvm-project/pull/182254


More information about the llvm-commits mailing list