summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-02-19 19:15:21 +0000
committerAdam Nemet <anemet@apple.com>2015-02-19 19:15:21 +0000
commit57ac766ee995d717dc032ba35c9100bc7aa77652 (patch)
tree94efcd95fb220071336bd30f21e686f60983f7cc /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parente91cc6ef9302e308a388b611a4855299458e59c7 (diff)
downloadbcm5719-llvm-57ac766ee995d717dc032ba35c9100bc7aa77652.tar.gz
bcm5719-llvm-57ac766ee995d717dc032ba35c9100bc7aa77652.zip
[LoopAccesses] Change LAA:getInfo to return a constant reference
As expected, this required a few more const-correctness fixes. Based on Hal's feedback on D7684. llvm-svn: 229899
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 3b3cd5e1389..61423063f46 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -735,11 +735,11 @@ public:
bool isUniformAfterVectorization(Instruction* I) { return Uniforms.count(I); }
/// Returns the information that we collected about runtime memory check.
- LoopAccessInfo::RuntimePointerCheck *getRuntimePointerCheck() {
+ const LoopAccessInfo::RuntimePointerCheck *getRuntimePointerCheck() const {
return LAI->getRuntimePointerCheck();
}
- LoopAccessInfo *getLAI() {
+ const LoopAccessInfo *getLAI() const {
return LAI;
}
@@ -856,7 +856,7 @@ private:
LoopAccessAnalysis *LAA;
// And the loop-accesses info corresponding to this loop. This pointer is
// null until canVectorizeMemory sets it up.
- LoopAccessInfo *LAI;
+ const LoopAccessInfo *LAI;
// --- vectorization state --- //
OpenPOWER on IntegriCloud