[NFC] UnifyLoopExits: correctly skip expensive checks
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>
Mon, 27 Apr 2020 09:40:35 +0000 (15:10 +0530)
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>
Mon, 27 Apr 2020 09:40:35 +0000 (15:10 +0530)
llvm/lib/Transforms/Utils/UnifyLoopExits.cpp

index 15c951f..8cdb4d6 100644 (file)
@@ -183,7 +183,7 @@ static bool unifyLoopExits(DominatorTree &DT, LoopInfo &LI, Loop *L) {
 #if defined(EXPENSIVE_CHECKS)
   assert(DT.verify(DominatorTree::VerificationLevel::Full));
 #else
-  assert(DT.verify(DominatorTree::VerificationLevel::Full));
+  assert(DT.verify(DominatorTree::VerificationLevel::Fast));
 #endif // EXPENSIVE_CHECKS
   L->verifyLoop();