summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-09-30 00:29:25 +0000
committerAdam Nemet <anemet@apple.com>2016-09-30 00:29:25 +0000
commit4fd9c42279835fee65cae4e21933b13d2d05b302 (patch)
tree37d48a6bc5677bfe9b4e5b8c342c9b57291c9cec /llvm/lib/Transforms
parent147f91c88e57652052dc9d1907e558b9e03b6e12 (diff)
downloadbcm5719-llvm-4fd9c42279835fee65cae4e21933b13d2d05b302.tar.gz
bcm5719-llvm-4fd9c42279835fee65cae4e21933b13d2d05b302.zip
[LV] Port the last opt remark in Hints to the new streaming interface
llvm-svn: 282820
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index fe37c19c230..0ec80fdf0c7 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -1278,11 +1278,12 @@ public:
// FIXME: Add interleave.disable metadata. This will allow
// vectorize.disable to be used without disabling the pass and errors
// to differentiate between disabled vectorization and a width of 1.
- ORE.emitOptimizationRemarkAnalysis(
- vectorizeAnalysisPassName(), L,
- "loop not vectorized: vectorization and interleaving are explicitly "
- "disabled, or vectorize width and interleave count are both set to "
- "1");
+ ORE.emit(OptimizationRemarkAnalysis(vectorizeAnalysisPassName(),
+ "AllDisabled", L->getStartLoc(),
+ L->getHeader())
+ << "loop not vectorized: vectorization and interleaving are "
+ "explicitly disabled, or vectorize width and interleave "
+ "count are both set to 1");
return false;
}
OpenPOWER on IntegriCloud