From: Dan Gohman Date: Tue, 21 Apr 2009 01:11:19 +0000 (+0000) Subject: Usage getAnalysisToUpdate for TargetData, per PR760. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a682430653a7726bba36f60a36ef4117cfc89438;p=oota-llvm.git Usage getAnalysisToUpdate for TargetData, per PR760. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69645 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index e429697b1cd..5300dbe49f3 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -3272,7 +3272,7 @@ SCEVHandle SCEVAddRecExpr::getNumIterationsInRange(ConstantRange Range, bool ScalarEvolution::runOnFunction(Function &F) { Impl = new ScalarEvolutionsImpl(*this, F, getAnalysis(), - &getAnalysis()); + getAnalysisIfAvailable()); return false; } @@ -3284,7 +3284,6 @@ void ScalarEvolution::releaseMemory() { void ScalarEvolution::getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequiredTransitive(); - AU.addRequiredTransitive(); } bool ScalarEvolution::isSCEVable(const Type *Ty) const {