diff options
| author | Adam Nemet <anemet@apple.com> | 2017-10-04 04:26:23 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2017-10-04 04:26:23 +0000 |
| commit | f31b1f310c7c9d90adbad35dd17732c6683d1c27 (patch) | |
| tree | e71af14d885376e64750e5fa9318e339af8c891b /llvm/lib/Analysis | |
| parent | 28c2c22624dd03f56862b62fd1c2ccea8d22cdd8 (diff) | |
| download | bcm5719-llvm-f31b1f310c7c9d90adbad35dd17732c6683d1c27.tar.gz bcm5719-llvm-f31b1f310c7c9d90adbad35dd17732c6683d1c27.zip | |
Move verbosity check for remarks to the diag handler
Test needs some slight adjustment because we no longer check the existence of
BFI but rather that the actual hotness is set on the remark. If entry_count
is not set getBlockProfileCount returns None.
llvm-svn: 314874
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp b/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp index c31de0fc42e..914ec7829fd 100644 --- a/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp +++ b/llvm/lib/Analysis/OptimizationDiagnosticInfo.cpp @@ -169,10 +169,7 @@ void OptimizationRemarkEmitter::emit( auto *P = &OptDiagBase; *Out << P; } - // FIXME: now that IsVerbose is part of DI, filtering for this will be moved - // from here to clang. - if (!OptDiag.isVerbose() || shouldEmitVerbose()) - F->getContext().diagnose(OptDiag); + F->getContext().diagnose(OptDiag); } OptimizationRemarkEmitterWrapperPass::OptimizationRemarkEmitterWrapperPass() |

