mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 07:33:18 +00:00
Usage getAnalysisToUpdate for TargetData, per PR760.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
af79fb5f47
commit
a682430653
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user