diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2016-04-06 14:06:32 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2016-04-06 14:06:32 +0000 |
commit | a393baf1fdcc8a5f85de191da74446e2f1d6bb73 (patch) | |
tree | 8f99967cc39bafb98758e629c0a2c495537da7e3 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | 19bc1d007a205b47f370abdc144d8c67ab58b792 (diff) | |
download | bcm5719-llvm-a393baf1fdcc8a5f85de191da74446e2f1d6bb73.tar.gz bcm5719-llvm-a393baf1fdcc8a5f85de191da74446e2f1d6bb73.zip |
Revert r265535 until we know how we can fix the bots
llvm-svn: 265541
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index d1eac460ca3..c67c581a018 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -140,7 +140,7 @@ void RuntimePointerChecking::insert(Loop *Lp, Value *Ptr, bool WritePtr, else { const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(Sc); assert(AR && "Invalid addrec expression"); - const SCEV *Ex = PSE.getBackedgeTakenCount(); + const SCEV *Ex = SE->getBackedgeTakenCount(Lp); ScStart = AR->getStart(); ScEnd = AR->evaluateAtIteration(Ex, *SE); @@ -1460,7 +1460,7 @@ bool LoopAccessInfo::canAnalyzeLoop() { } // ScalarEvolution needs to be able to find the exit count. - const SCEV *ExitCount = PSE.getBackedgeTakenCount(); + const SCEV *ExitCount = PSE.getSE()->getBackedgeTakenCount(TheLoop); if (ExitCount == PSE.getSE()->getCouldNotCompute()) { emitAnalysis(LoopAccessReport() << "could not determine number of loop iterations"); |