From: Adam Nemet Date: Wed, 15 Jun 2016 22:58:27 +0000 (+0000) Subject: [LV] Make the new getter return a const reference. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2978728dd25804cf2202b143d94a2d645627c09d;p=llvm [LV] Make the new getter return a const reference. NFC LoopVectorizationLegality holds a constant reference to LAI, so this will have to be const as well. Also added missed function comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272851 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index a5eedc9ff05..2fbd9725dbd 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -1448,7 +1448,9 @@ private: emitAnalysisDiag(TheFunction, TheLoop, *Hints, Message); } - ValueToValueMap &getSymbolicStrides() { return SymbolicStrides; } + /// \brief If an access has a symbolic strides, this maps the pointer value to + /// the stride symbol. + const ValueToValueMap &getSymbolicStrides() { return SymbolicStrides; } unsigned NumPredStores;