diff options
author | Duncan Sands <baldrick@free.fr> | 2009-01-28 13:14:17 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-01-28 13:14:17 +0000 |
commit | 1465d61bdd36cfd6021036a527895f0dd358e97d (patch) | |
tree | 5a066582fade4aa68d9608de87fb15a0400fe12a /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | e02f724880ddb7ffe296cda3ffb9822761a13ce7 (diff) |
Rename getAnalysisToUpdate to getAnalysisIfAvailable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index af41036252..03d273d25d 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -112,7 +112,7 @@ FunctionPass *llvm::createLoopSimplifyPass() { return new LoopSimplify(); } bool LoopSimplify::runOnFunction(Function &F) { bool Changed = false; LI = &getAnalysis<LoopInfo>(); - AA = getAnalysisToUpdate<AliasAnalysis>(); + AA = getAnalysisIfAvailable<AliasAnalysis>(); DT = &getAnalysis<DominatorTree>(); // Check to see that no blocks (other than the header) in loops have @@ -595,6 +595,6 @@ void LoopSimplify::InsertUniqueBackedgeBlock(Loop *L) { // Update dominator information DT->splitBlock(BEBlock); - if (DominanceFrontier *DF = getAnalysisToUpdate<DominanceFrontier>()) + if (DominanceFrontier *DF = getAnalysisIfAvailable<DominanceFrontier>()) DF->splitBlock(BEBlock); } |