[llvm] d4e3e1e - Fix build due to renaming in LoopInfo.

Michael Liao via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 14:34:19 PDT 2020


Author: Michael Liao
Date: 2020-09-22T17:33:38-04:00
New Revision: d4e3e1e548793c6686e19f8ba50bf62f3fde7545

URL: https://github.com/llvm/llvm-project/commit/d4e3e1e548793c6686e19f8ba50bf62f3fde7545
DIFF: https://github.com/llvm/llvm-project/commit/d4e3e1e548793c6686e19f8ba50bf62f3fde7545.diff

LOG: Fix build due to renaming in LoopInfo.

Added: 
    

Modified: 
    llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
index 8bec9629c554..c5b3e29d2a78 100644
--- a/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
+++ b/llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
@@ -1390,7 +1390,7 @@ TEST_F(LoopPassManagerTest, LoopDeletion) {
   // have no PHI nodes and there is always a single i-dom.
   auto EraseLoop = [](Loop &L, BasicBlock &IDomBB,
                       LoopStandardAnalysisResults &AR, LPMUpdater &Updater) {
-    assert(L.empty() && "Can only delete leaf loops with this routine!");
+    assert(L.isInnermost() && "Can only delete leaf loops with this routine!");
     SmallVector<BasicBlock *, 4> LoopBBs(L.block_begin(), L.block_end());
     Updater.markLoopAsDeleted(L, L.getName());
     IDomBB.getTerminator()->replaceUsesOfWith(L.getHeader(),


        


More information about the llvm-commits mailing list