summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-09-29 17:55:13 +0000
committerAdam Nemet <anemet@apple.com>2016-09-29 17:55:13 +0000
commit6e1edd5d1f9619fe69685097a9458064a6aeafe7 (patch)
tree39626a0f071ad0b6b0964269a9987a66ed34cffb /llvm/lib
parente45b2c7d8e76c3e51c47ca272b00e4257d8fd672 (diff)
downloadbcm5719-llvm-6e1edd5d1f9619fe69685097a9458064a6aeafe7.tar.gz
bcm5719-llvm-6e1edd5d1f9619fe69685097a9458064a6aeafe7.zip
[LV] Convert processLoop to new streaming API for opt remarks
llvm-svn: 282740
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index ec833001a45..44af9bbaade 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -6993,9 +6993,10 @@ bool LoopVectorizePass::processLoop(Loop *L) {
DEBUG(dbgs() << " But vectorizing was explicitly forced.\n");
else {
DEBUG(dbgs() << "\n");
- emitAnalysisDiag(L, Hints, *ORE, VectorizationReport()
- << "vectorization is not beneficial "
- "and is not explicitly forced");
+ ORE->emit(createMissedAnalysis(Hints.vectorizeAnalysisPassName(),
+ "NotBeneficial", L)
+ << "vectorization is not beneficial "
+ "and is not explicitly forced");
return false;
}
}
@@ -7041,10 +7042,9 @@ bool LoopVectorizePass::processLoop(Loop *L) {
if (F->hasFnAttribute(Attribute::NoImplicitFloat)) {
DEBUG(dbgs() << "LV: Can't vectorize when the NoImplicitFloat"
"attribute is used.\n");
- emitAnalysisDiag(
- L, Hints, *ORE,
- VectorizationReport()
- << "loop not vectorized due to NoImplicitFloat attribute");
+ ORE->emit(createMissedAnalysis(Hints.vectorizeAnalysisPassName(),
+ "NoImplicitFloat", L)
+ << "loop not vectorized due to NoImplicitFloat attribute");
emitMissedWarning(F, L, Hints, ORE);
return false;
}
@@ -7056,9 +7056,9 @@ bool LoopVectorizePass::processLoop(Loop *L) {
if (Hints.isPotentiallyUnsafe() &&
TTI->isFPVectorizationPotentiallyUnsafe()) {
DEBUG(dbgs() << "LV: Potentially unsafe FP op prevents vectorization.\n");
- emitAnalysisDiag(L, Hints, *ORE,
- VectorizationReport()
- << "loop not vectorized due to unsafe FP support.");
+ ORE->emit(
+ createMissedAnalysis(Hints.vectorizeAnalysisPassName(), "UnsafeFP", L)
+ << "loop not vectorized due to unsafe FP support.");
emitMissedWarning(F, L, Hints, ORE);
return false;
}
OpenPOWER on IntegriCloud