[llvm] r272851 - [LV] Make the new getter return a const reference. NFC
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 15:58:27 PDT 2016
Author: anemet
Date: Wed Jun 15 17:58:27 2016
New Revision: 272851
URL: http://llvm.org/viewvc/llvm-project?rev=272851&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=272851&r1=272850&r2=272851&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Wed Jun 15 17:58:27 2016
@@ -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;
More information about the llvm-commits
mailing list