diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp index 0007aded2b5..1af3684dbe0 100644 --- a/lib/Analysis/LoopPass.cpp +++ b/lib/Analysis/LoopPass.cpp @@ -239,7 +239,9 @@ bool LPPassManager::runOnFunction(Function &F) { dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, ""); dumpPreservedSet(P); - verifyPreservedAnalysis(LP); + if (!skipThisLoop) + verifyPreservedAnalysis(LP); + removeNotPreservedAnalysis(P); recordAvailableAnalysis(P); removeDeadPasses(P, "", ON_LOOP_MSG);