summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2015-02-18 03:42:50 +0000
committerAdam Nemet <anemet@apple.com>2015-02-18 03:42:50 +0000
commit5474be2c80a8887e68e22b33b7a3ad6d396e780b (patch)
tree77d9faf0e61d519860f0f1cb0ed11463fba47900 /llvm/lib/Analysis
parent4f3ede5a01041aab7cd4d185bdf2cfd2d653a1d2 (diff)
downloadbcm5719-llvm-5474be2c80a8887e68e22b33b7a3ad6d396e780b.tar.gz
bcm5719-llvm-5474be2c80a8887e68e22b33b7a3ad6d396e780b.zip
[LoopAccesses] Stash the report from the analysis rather than emitting it
The transformation passes will query this and then emit them as part of their own report. The currently only user LV is modified to do just that. This is part of the patchset that converts LoopAccessAnalysis into an actual analysis pass. llvm-svn: 229623
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/LoopAccessAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 9ac27ddb46f..927ae494548 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -1077,7 +1077,8 @@ bool LoopAccessInfo::blockNeedsPredication(BasicBlock *BB) {
}
void LoopAccessInfo::emitAnalysis(VectorizationReport &Message) {
- VectorizationReport::emitAnalysis(Message, TheFunction, TheLoop);
+ assert(!Report && "Multiple report generated");
+ Report = Message;
}
bool LoopAccessInfo::isUniform(Value *V) {
OpenPOWER on IntegriCloud