[LoopSimplifyCFG] Suppress expensive DomTree verification

This patch makes verification level lower for builds with
inexpensive checks.

Differential Revision: https://reviews.llvm.org/D61055

llvm-svn: 359446
This commit is contained in:
Yevgeny Rouban 2019-04-29 13:29:55 +00:00
parent bc4d3c43a3
commit 0822bfc6de
1 changed files with 7 additions and 1 deletions

View File

@ -598,7 +598,13 @@ public:
#ifndef NDEBUG
// Make sure that we have preserved all data structures after the transform.
assert(DT.verify() && "DT broken after transform!");
#if defined(EXPENSIVE_CHECKS)
assert(DT.verify(DominatorTree::VerificationLevel::Full) &&
"DT broken after transform!");
#else
assert(DT.verify(DominatorTree::VerificationLevel::Fast) &&
"DT broken after transform!");
#endif
assert(DT.isReachableFromEntry(Header));
LI.verify(DT);
#endif