[llvm] LoopVectorize: run verifyFunction once (PR #91470)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 07:08:42 PDT 2024


================
@@ -10359,6 +10357,8 @@ LoopVectorizeResult LoopVectorizePass::runImpl(
     }
   }
 
+  assert(!Changed || !verifyFunction(F, &dbgs()));
----------------
fhahn wrote:

`Changed` may also be set if the loop only has been modified by `simplifyLoop` or `formLCSSARecursively`, so we will verify in cases where we didn't before?

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


More information about the llvm-commits mailing list