diff options
author | Denis Zobnin <d.zobnin.bugzilla@gmail.com> | 2016-05-10 05:55:16 +0000 |
---|---|---|
committer | Denis Zobnin <d.zobnin.bugzilla@gmail.com> | 2016-05-10 05:55:16 +0000 |
commit | 15d1e64b2b1cdece177102074f03ee161fed91fb (patch) | |
tree | ea6aa3d57f319c66aed2527b8a094c4bafcbf63e /llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp | |
parent | 11e87cc94577682b9275e5e48edfccc4a478bc08 (diff) | |
download | llvm-15d1e64b2b1cdece177102074f03ee161fed91fb.zip llvm-15d1e64b2b1cdece177102074f03ee161fed91fb.tar.gz llvm-15d1e64b2b1cdece177102074f03ee161fed91fb.tar.bz2 |
[LAA] Rename "isStridedPtr" with "getPtrStride". NFC.
Changing misleading function name was approved in http://reviews.llvm.org/D17268.
Patch by Roman Shirokiy.
llvm-svn: 269021
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp index 1740be70..8f2b3ac 100644 --- a/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp +++ b/llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp @@ -77,8 +77,8 @@ struct StoreToLoadForwardingCandidate { // Currently we only support accesses with unit stride. FIXME: we should be // able to handle non unit stirde as well as long as the stride is equal to // the dependence distance. - if (isStridedPtr(PSE, LoadPtr, L) != 1 || - isStridedPtr(PSE, StorePtr, L) != 1) + if (getPtrStride(PSE, LoadPtr, L) != 1 || + getPtrStride(PSE, StorePtr, L) != 1) return false; auto &DL = Load->getParent()->getModule()->getDataLayout(); |