summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2017-10-04 04:26:23 +0000
committerAdam Nemet <anemet@apple.com>2017-10-04 04:26:23 +0000
commitf31b1f310c7c9d90adbad35dd17732c6683d1c27 (patch)
treee71af14d885376e64750e5fa9318e339af8c891b /llvm/lib/Analysis
parent28c2c22624dd03f56862b62fd1c2ccea8d22cdd8 (diff)
downloadbcm5719-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.cpp5
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()
OpenPOWER on IntegriCloud