Drop Loop::isNotAlreadyContainedIn in favor of Loop::contains. The
authorDan Gohman <gohman@apple.com>
Mon, 14 Dec 2009 17:06:50 +0000 (17:06 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 14 Dec 2009 17:06:50 +0000 (17:06 +0000)
former was just exposing a LoopInfoBase implementation detail.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91286 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h
lib/Analysis/IVUsers.cpp

index 7419cdc4440d6ca0e9c8165744019ae0674051b8..2294e5352cb2b058e4a7172a0400b3ec340e49a6 100644 (file)
@@ -976,13 +976,6 @@ public:
   void removeBlock(BasicBlock *BB) {
     LI.removeBlock(BB);
   }
-
-  static bool isNotAlreadyContainedIn(const Loop *SubLoop,
-                                      const Loop *ParentLoop) {
-    return
-      LoopInfoBase<BasicBlock, Loop>::isNotAlreadyContainedIn(SubLoop,
-                                                              ParentLoop);
-  }
 };
 
 
index 37747b65174cd608ca3ec11c14f80c7484dce117..7898679c8eb8032f7798a190066e3c967b2bc3de 100644 (file)
@@ -53,7 +53,7 @@ static bool containsAddRecFromDifferentLoop(const SCEV *S, Loop *L) {
       if (newLoop == L)
         return false;
       // if newLoop is an outer loop of L, this is OK.
-      if (!LoopInfo::isNotAlreadyContainedIn(L, newLoop))
+      if (!newLoop->contains(L->getHeader()))
         return false;
     }
     return true;