[LoopUtils] Only verify SE in builds with assertions.

Follow up to 60b852092c.
This commit is contained in:
Florian Hahn 2020-09-29 13:37:24 +01:00
parent a59be54e61
commit 7bae2bc5a8
1 changed files with 2 additions and 0 deletions

View File

@ -725,8 +725,10 @@ void llvm::deleteDeadLoop(Loop *L, DominatorTree *DT, ScalarEvolution *SE,
LI->destroy(L);
}
#ifndef NDEBUG
if (SE)
SE->verify();
#endif
}
/// Checks if \p L has single exit through latch block except possibly