[llvm] [LoopVectorize] Verify the function once per pass, not once per loop (PR #216448)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 17:24:18 PDT 2026


================
@@ -8380,7 +8380,9 @@ bool LoopVectorizePass::processLoop(Loop *L) {
 
   assert(DT->verify(DominatorTree::VerificationLevel::Fast) &&
          "DT not preserved correctly");
+#ifdef EXPENSIVE_CHECKS
   assert(!verifyFunction(*F, &dbgs()));
+#endif
----------------
MaskRay wrote:

done

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


More information about the llvm-commits mailing list