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 | 5a913d61e3480f0ef825e284c09a7811deef8a1c (patch) | |
tree | e1897705641e56cdf229eecacc9e4c1eeca380d1 /llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp | |
parent | 08e53d041f6b0cb0d6367a2173569a5005114070 (diff) | |
download | bcm5719-llvm-5a913d61e3480f0ef825e284c09a7811deef8a1c.tar.gz bcm5719-llvm-5a913d61e3480f0ef825e284c09a7811deef8a1c.zip |
Rename getAnalysisToUpdate to getAnalysisIfAvailable.
llvm-svn: 63198
Diffstat (limited to 'llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp b/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp index a32c0167128..c4fd1eae43c 100644 --- a/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp +++ b/llvm/lib/Transforms/Utils/BreakCriticalEdges.cpp @@ -187,7 +187,7 @@ bool llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P, bool NewBBDominatesDestBB = true; // Should we update DominatorTree information? - if (DominatorTree *DT = P->getAnalysisToUpdate<DominatorTree>()) { + if (DominatorTree *DT = P->getAnalysisIfAvailable<DominatorTree>()) { DomTreeNode *TINode = DT->getNode(TIBB); // The new block is not the immediate dominator for any other nodes, but @@ -218,7 +218,7 @@ bool llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P, } // Should we update DominanceFrontier information? - if (DominanceFrontier *DF = P->getAnalysisToUpdate<DominanceFrontier>()) { + if (DominanceFrontier *DF = P->getAnalysisIfAvailable<DominanceFrontier>()) { // If NewBBDominatesDestBB hasn't been computed yet, do so with DF. if (!OtherPreds.empty()) { // FIXME: IMPLEMENT THIS! @@ -252,7 +252,7 @@ bool llvm::SplitCriticalEdge(TerminatorInst *TI, unsigned SuccNum, Pass *P, } // Update LoopInfo if it is around. - if (LoopInfo *LI = P->getAnalysisToUpdate<LoopInfo>()) { + if (LoopInfo *LI = P->getAnalysisIfAvailable<LoopInfo>()) { // If one or the other blocks were not in a loop, the new block is not // either, and thus LI doesn't need to be updated. if (Loop *TIL = LI->getLoopFor(TIBB)) |