diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-12-17 20:28:46 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-12-17 20:28:46 +0000 |
commit | 0de2feceb1dd0aebbba4fe98032d7ecb46b0e663 (patch) | |
tree | 1d14beb84e672fc1bbcc2a0e52930ac1b48ca941 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | 24fbef55f9d4c1233e3de29bd236d20afdea536c (diff) | |
download | bcm5719-llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.tar.gz bcm5719-llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.zip |
[SCEV] Add and use SCEVConstant::getAPInt; NFCI
llvm-svn: 255921
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 ce6a5ab5656..d7896ade354 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -876,7 +876,7 @@ int llvm::isStridedPtr(PredicatedScalarEvolution &PSE, Value *Ptr, auto &DL = Lp->getHeader()->getModule()->getDataLayout(); int64_t Size = DL.getTypeAllocSize(PtrTy->getElementType()); - const APInt &APStepVal = C->getValue()->getValue(); + const APInt &APStepVal = C->getAPInt(); // Huge step value - give up. if (APStepVal.getBitWidth() > 64) @@ -1096,7 +1096,7 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx, unsigned TypeByteSize = DL.getTypeAllocSize(ATy); // Negative distances are not plausible dependencies. - const APInt &Val = C->getValue()->getValue(); + const APInt &Val = C->getAPInt(); if (Val.isNegative()) { bool IsTrueDataDependence = (AIsWrite && !BIsWrite); if (IsTrueDataDependence && |