From: Anna Thomas Date: Thu, 3 Jan 2019 19:43:33 +0000 (+0000) Subject: [UnrollRuntime] Move the DomTree verification under expensive checks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ef7f0e54876ef03c815c469839952fd49ab8f70;p=llvm [UnrollRuntime] Move the DomTree verification under expensive checks Suggested by Hal as done in r349871. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/lib/Transforms/Utils/LoopUnrollRuntime.cpp index a60becac649..386ec891ec1 100644 --- a/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/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