diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp index d8680aac74b22..85c15c5721cd6 100644 --- a/llvm/lib/Analysis/LoopPass.cpp +++ b/llvm/lib/Analysis/LoopPass.cpp @@ -130,7 +130,7 @@ bool LPPassManager::runOnFunction(Function &F) { auto &LIWP = getAnalysis(); LI = &LIWP.getLoopInfo(); Module &M = *F.getParent(); -#if 0 +#ifndef NDEBUG DominatorTree *DT = &getAnalysis().getDomTree(); #endif bool Changed = false; @@ -239,9 +239,7 @@ bool LPPassManager::runOnFunction(Function &F) { // is that LPPassManager might run passes which do not require LCSSA // form (LoopPassPrinter for example). We should skip verification for // such passes. - // FIXME: Loop-sink currently break LCSSA. Fix it and reenable the - // verification! -#if 0 +#ifndef NDEBUG if (mustPreserveAnalysisID(LCSSAVerificationPass::ID)) assert(CurrentLoop->isRecursivelyLCSSAForm(*DT, *LI)); #endif