]> granicus.if.org Git - llvm/commitdiff
[UnrollRuntime] Move the DomTree verification under expensive checks
authorAnna Thomas <anna@azul.com>
Thu, 3 Jan 2019 19:43:33 +0000 (19:43 +0000)
committerAnna Thomas <anna@azul.com>
Thu, 3 Jan 2019 19:43:33 +0000 (19:43 +0000)
Suggested by Hal as done in r349871.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350349 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LoopUnrollRuntime.cpp

index a60becac649749da761799b5afe3470e1e6cce9e..386ec891ec1db95fa316512427ec1333c0826931 100644 (file)
@@ -928,7 +928,7 @@ bool llvm::UnrollRuntimeLoopRemainder(Loop *L, unsigned Count,
   SE->forgetTopmostLoop(L);
 
   // Verify that the Dom Tree is correct.
-#if !defined(NDEBUG)
+#if defined(EXPENSIVE_CHECKS) && !defined(NDEBUG)
   if (DT)
     assert(DT->verify(DominatorTree::VerificationLevel::Full));
 #endif