[llvm] r350349 - [UnrollRuntime] Move the DomTree verification under expensive checks

Anna Thomas via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 3 11:43:33 PST 2019


Author: annat
Date: Thu Jan  3 11:43:33 2019
New Revision: 350349

URL: http://llvm.org/viewvc/llvm-project?rev=350349&view=rev
Log:
[UnrollRuntime] Move the DomTree verification under expensive checks

Suggested by Hal as done in r349871.

Modified:
    llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp

Modified: llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp?rev=350349&r1=350348&r2=350349&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnrollRuntime.cpp Thu Jan  3 11:43:33 2019
@@ -928,7 +928,7 @@ bool llvm::UnrollRuntimeLoopRemainder(Lo
   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




More information about the llvm-commits mailing list