diff options
author | Dan Gohman <gohman@apple.com> | 2009-12-14 17:06:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-12-14 17:06:50 +0000 |
commit | 57eb6cda7aa33ad88d6124dff57cb0e07e716ee9 (patch) | |
tree | 7953d630d9c79ccde425b81da4e70b02aeac5198 | |
parent | 9d6410d040d7dafd01316930e0ee8be9fb241b17 (diff) | |
download | bcm5719-llvm-57eb6cda7aa33ad88d6124dff57cb0e07e716ee9.tar.gz bcm5719-llvm-57eb6cda7aa33ad88d6124dff57cb0e07e716ee9.zip |
Drop Loop::isNotAlreadyContainedIn in favor of Loop::contains. The
former was just exposing a LoopInfoBase implementation detail.
llvm-svn: 91286
-rw-r--r-- | llvm/include/llvm/Analysis/LoopInfo.h | 7 | ||||
-rw-r--r-- | llvm/lib/Analysis/IVUsers.cpp | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index 7419cdc4440..2294e5352cb 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/include/llvm/Analysis/LoopInfo.h @@ -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); - } }; diff --git a/llvm/lib/Analysis/IVUsers.cpp b/llvm/lib/Analysis/IVUsers.cpp index 37747b65174..7898679c8eb 100644 --- a/llvm/lib/Analysis/IVUsers.cpp +++ b/llvm/lib/Analysis/IVUsers.cpp @@ -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; |