diff options
author | Adam Nemet <anemet@apple.com> | 2017-03-01 04:31:15 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-03-01 04:31:15 +0000 |
commit | 15032a0455c5f63b669a3f3a8a07e2eb9d66f58d (patch) | |
tree | f92f00464846940ab322a6cc41ae395e69fb2dae /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | 2787664db7a2494a40b7aba9266677c1600de0bd (diff) | |
download | bcm5719-llvm-15032a0455c5f63b669a3f3a8a07e2eb9d66f58d.tar.gz bcm5719-llvm-15032a0455c5f63b669a3f3a8a07e2eb9d66f58d.zip |
[LV] These remark should have been missed remarks
The practice in LV is that we emit analysis remarks and then finally report
either a missed or applied remark on the final decision whether vectorization
is taking place. On this code path, we were closing with an analysis remark.
llvm-svn: 296578
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 3d203816d2a..36570b49bb0 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -7647,10 +7647,10 @@ bool LoopVectorizePass::processLoop(Loop *L) { const char *VAPassName = Hints.vectorizeAnalysisPassName(); if (!VectorizeLoop && !InterleaveLoop) { // Do not vectorize or interleaving the loop. - ORE->emit(OptimizationRemarkAnalysis(VAPassName, VecDiagMsg.first, + ORE->emit(OptimizationRemarkMissed(VAPassName, VecDiagMsg.first, L->getStartLoc(), L->getHeader()) << VecDiagMsg.second); - ORE->emit(OptimizationRemarkAnalysis(LV_NAME, IntDiagMsg.first, + ORE->emit(OptimizationRemarkMissed(LV_NAME, IntDiagMsg.first, L->getStartLoc(), L->getHeader()) << IntDiagMsg.second); return false; |