summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopAccessAnalysis.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-12-17 20:28:46 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-12-17 20:28:46 +0000
commit0de2feceb1dd0aebbba4fe98032d7ecb46b0e663 (patch)
tree1d14beb84e672fc1bbcc2a0e52930ac1b48ca941 /llvm/lib/Analysis/LoopAccessAnalysis.cpp
parent24fbef55f9d4c1233e3de29bd236d20afdea536c (diff)
downloadbcm5719-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.cpp4
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 &&
OpenPOWER on IntegriCloud