[llvm] 7bae2bc - [LoopUtils] Only verify SE in builds with assertions.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 05:39:50 PDT 2020
Author: Florian Hahn
Date: 2020-09-29T13:39:23+01:00
New Revision: 7bae2bc5a8dd11c016c895e3a691fb93575773f3
URL: https://github.com/llvm/llvm-project/commit/7bae2bc5a8dd11c016c895e3a691fb93575773f3
DIFF: https://github.com/llvm/llvm-project/commit/7bae2bc5a8dd11c016c895e3a691fb93575773f3.diff
LOG: [LoopUtils] Only verify SE in builds with assertions.
Follow up to 60b852092c98.
Added:
Modified:
llvm/lib/Transforms/Utils/LoopUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index f2496c4a1ea1..ccb9b6d0bdb4 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -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
More information about the llvm-commits
mailing list