Rename getAnalysisToUpdate to getAnalysisIfAvailable.

llvm-svn: 63198
This commit is contained in:
Duncan Sands
2009-01-28 13:14:17 +00:00
parent 08e53d041f
commit 5a913d61e3
29 changed files with 87 additions and 85 deletions

View File

@@ -188,8 +188,8 @@ static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
bool LoopUnswitch::runOnLoop(Loop *L, LPPassManager &LPM_Ref) {
LI = &getAnalysis<LoopInfo>();
LPM = &LPM_Ref;
DF = getAnalysisToUpdate<DominanceFrontier>();
DT = getAnalysisToUpdate<DominatorTree>();
DF = getAnalysisIfAvailable<DominanceFrontier>();
DT = getAnalysisIfAvailable<DominatorTree>();
currentLoop = L;
Function *F = currentLoop->getHeader()->getParent();
bool Changed = false;