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 @@ -904,8 +904,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);