summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-06-15 22:58:27 +0000
committerAdam Nemet <anemet@apple.com>2016-06-15 22:58:27 +0000
commit76a41d3a25ebde7ad7c25c02f54f1d2ec8db4c98 (patch)
treecd30feb5962595aa10079d0c56ada19e72f9808e /llvm/lib/Transforms/Vectorize
parent1e16d61f1f536493c9084a971c8fc2c58e18746a (diff)
downloadbcm5719-llvm-76a41d3a25ebde7ad7c25c02f54f1d2ec8db4c98.tar.gz
bcm5719-llvm-76a41d3a25ebde7ad7c25c02f54f1d2ec8db4c98.zip
[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. llvm-svn: 272851
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index a5eedc9ff05..2fbd9725dbd 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud