diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp --- a/llvm/lib/Transforms/Utils/LoopPeel.cpp +++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp @@ -892,8 +892,10 @@ // We modified the loop, update SE. SE->forgetTopmostLoop(L); +#ifdef EXPENSIVE_CHECKS // Finally DomtTree must be correct. assert(DT->verify(DominatorTree::VerificationLevel::Fast)); +#endif // FIXME: Incrementally update loop-simplify simplifyLoop(L, DT, LI, SE, AC, nullptr, PreserveLCSSA);