]> granicus.if.org Git - llvm/commitdiff
[LV] Make the new getter return a const reference. NFC
authorAdam Nemet <anemet@apple.com>
Wed, 15 Jun 2016 22:58:27 +0000 (22:58 +0000)
committerAdam Nemet <anemet@apple.com>
Wed, 15 Jun 2016 22:58:27 +0000 (22:58 +0000)
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

lib/Transforms/Vectorize/LoopVectorize.cpp

index a5eedc9ff052703685e3734a163f3abddf5f1642..2fbd9725dbd3da248994c7e041f3cca87a86ef0b 100644 (file)
@@ -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;