Add dom info verifier.
[oota-llvm.git] / lib / Analysis / LoopPass.cpp
index b4534cd511f3fc336da2377e160bca97ee846ea8..57e8f4da960561b8597535219d3c76fff960cd62 100644 (file)
@@ -234,6 +234,9 @@ bool LPPassManager::runOnFunction(Function &F) {
       recordAvailableAnalysis(P);
       removeDeadPasses(P, "", ON_LOOP_MSG);
 
+      // Verify dominator information if it is available and preserved.
+      verifyDomInfo(*LP, F);
+
       if (skipThisLoop)
         // Do not run other passes on this loop.
         break;