diff options
author | Adam Nemet <anemet@apple.com> | 2015-02-18 03:44:33 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-02-18 03:44:33 +0000 |
commit | 85fd9f8d09b4f2626000fb3c96be7f09b3e7577b (patch) | |
tree | c9de532bba4176231eb9e9138917007efa3a54ba /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 75bc2d111f02e650a1590b033a15228694bb241d (diff) | |
download | bcm5719-llvm-85fd9f8d09b4f2626000fb3c96be7f09b3e7577b.tar.gz bcm5719-llvm-85fd9f8d09b4f2626000fb3c96be7f09b3e7577b.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: 229634
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index ed4210b5bcf..d75eead0683 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -756,11 +756,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; } @@ -877,7 +877,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 --- // |