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/Transforms/Scalar/LoopLoadElimination.cpp | |
parent | 24fbef55f9d4c1233e3de29bd236d20afdea536c (diff) | |
download | llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.zip llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.tar.gz llvm-0de2feceb1dd0aebbba4fe98032d7ecb46b0e663.tar.bz2 |
[SCEV] Add and use SCEVConstant::getAPInt; NFCI
llvm-svn: 255921
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp index c5bce7a..1064d08 100644 --- a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp +++ b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp @@ -82,7 +82,7 @@ struct StoreToLoadForwardingCandidate { // dependence wouldn't be valid if these weren't monotonic accesses. auto *Dist = cast<SCEVConstant>( PSE.getSE()->getMinusSCEV(StorePtrSCEV, LoadPtrSCEV)); - const APInt &Val = Dist->getValue()->getValue(); + const APInt &Val = Dist->getAPInt(); return Val.abs() == TypeByteSize; } |