summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
index a60becac649..386ec891ec1 100644
--- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
@@ -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
OpenPOWER on IntegriCloud