summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-02-18 03:42:57 +0000
committerAdam Nemet <anemet@apple.com>2015-02-18 03:42:57 +0000
commit3cf32ad6dbb2bb7f72a195c5d60df753e7496380 (patch)
tree6e5ccff749e68f829e445e30062c6855d36ab6a7 /llvm/lib/Transforms/Vectorize
parent5474be2c80a8887e68e22b33b7a3ad6d396e780b (diff)
downloadbcm5719-llvm-3cf32ad6dbb2bb7f72a195c5d60df753e7496380.tar.gz
bcm5719-llvm-3cf32ad6dbb2bb7f72a195c5d60df753e7496380.zip
[LoopAccesses] Cache the result of canVectorizeMemory
LAA will be an on-demand analysis pass, so we need to cache the result of the analysis. canVectorizeMemory is renamed to analyzeLoop which computes the result. canVectorizeMemory becomes the query function for the cached result. This is part of the patchset that converts LoopAccessAnalysis into an actual analysis pass. llvm-svn: 229624
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index abb38d19ea1..1def103d970 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -3825,11 +3825,11 @@ void LoopVectorizationLegality::collectLoopUniforms() {
}
bool LoopVectorizationLegality::canVectorizeMemory() {
- bool Success = LAI.canVectorizeMemory(Strides);
+ LAI.analyzeLoop(Strides);
auto &OptionalReport = LAI.getReport();
if (OptionalReport)
emitAnalysis(*OptionalReport);
- return Success;
+ return LAI.canVectorizeMemory();
}
static bool hasMultipleUsesOf(Instruction *I,
OpenPOWER on IntegriCloud