1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Usage getAnalysisToUpdate for TargetData, per PR760.

llvm-svn: 69645
This commit is contained in:
Dan Gohman 2009-04-21 01:11:19 +00:00
parent 55d8490e7b
commit 2f8d813b3a

View File

@ -3272,7 +3272,7 @@ SCEVHandle SCEVAddRecExpr::getNumIterationsInRange(ConstantRange Range,
bool ScalarEvolution::runOnFunction(Function &F) {
Impl = new ScalarEvolutionsImpl(*this, F,
getAnalysis<LoopInfo>(),
&getAnalysis<TargetData>());
getAnalysisIfAvailable<TargetData>());
return false;
}
@ -3284,7 +3284,6 @@ void ScalarEvolution::releaseMemory() {
void ScalarEvolution::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
AU.addRequiredTransitive<LoopInfo>();
AU.addRequiredTransitive<TargetData>();
}
bool ScalarEvolution::isSCEVable(const Type *Ty) const {