[llvm-commits] [llvm] r69645 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Dan Gohman
gohman at apple.com
Mon Apr 20 18:11:19 PDT 2009
Author: djg
Date: Mon Apr 20 20:11:19 2009
New Revision: 69645
URL: http://llvm.org/viewvc/llvm-project?rev=69645&view=rev
Log:
Usage getAnalysisToUpdate for TargetData, per PR760.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=69645&r1=69644&r2=69645&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Mon Apr 20 20:11:19 2009
@@ -3272,7 +3272,7 @@
bool ScalarEvolution::runOnFunction(Function &F) {
Impl = new ScalarEvolutionsImpl(*this, F,
getAnalysis<LoopInfo>(),
- &getAnalysis<TargetData>());
+ getAnalysisIfAvailable<TargetData>());
return false;
}
@@ -3284,7 +3284,6 @@
void ScalarEvolution::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequiredTransitive<LoopInfo>();
- AU.addRequiredTransitive<TargetData>();
}
bool ScalarEvolution::isSCEVable(const Type *Ty) const {
More information about the llvm-commits
mailing list