diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp index 86aa43c..105c628f 100644 --- a/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp @@ -939,10 +939,12 @@ bool llvm::UnrollRuntimeLoopRemainder( // of its parent loops, so the Scalar Evolution pass needs to be run again. SE->forgetTopmostLoop(L); - // Verify that the Dom Tree is correct. + // Verify that the Dom Tree and Loop Info are correct. #if defined(EXPENSIVE_CHECKS) && !defined(NDEBUG) - if (DT) + if (DT) { assert(DT->verify(DominatorTree::VerificationLevel::Full)); + LI->verify(*DT); + } #endif // For unroll factor 2 remainder loop will have 1 iteration. |