diff options
author | Bob Haarman <llvm@inglorion.net> | 2018-03-08 01:13:10 +0000 |
---|---|---|
committer | Bob Haarman <llvm@inglorion.net> | 2018-03-08 01:13:10 +0000 |
commit | fb2d34229941a32666bec8ca96ba3beb703ed188 (patch) | |
tree | aa6b1f982e68ede55cfcfab5e41699a5962ce033 /llvm/lib/LTO/LTOCodeGenerator.cpp | |
parent | 8d485b845b1dc8cdd78c7c4028be94f2abadbf50 (diff) | |
download | bcm5719-llvm-fb2d34229941a32666bec8ca96ba3beb703ed188.tar.gz bcm5719-llvm-fb2d34229941a32666bec8ca96ba3beb703ed188.zip |
Revert "[LTO] Support filtering by hotness threshold"
This reverts commit 1f3bd185c53beb6aa68446974b7e80837abd6ef0 (r326107)
because it fails
ThinLTO/X86/diagnostic-handler-remarks-with-hotness.ll.
llvm-svn: 326975
Diffstat (limited to 'llvm/lib/LTO/LTOCodeGenerator.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOCodeGenerator.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/LTO/LTOCodeGenerator.cpp b/llvm/lib/LTO/LTOCodeGenerator.cpp index 939d12a20be..ffe9af74cdc 100644 --- a/llvm/lib/LTO/LTOCodeGenerator.cpp +++ b/llvm/lib/LTO/LTOCodeGenerator.cpp @@ -89,12 +89,6 @@ cl::opt<bool> LTOPassRemarksWithHotness( "lto-pass-remarks-with-hotness", cl::desc("With PGO, include profile count in optimization remarks"), cl::Hidden); - -cl::opt<unsigned> LTOPassRemarksHotnessThreshold( - "lto-pass-remarks-hotness-threshold", - cl::desc("Minimum profile count required for an optimization remark to be " - "output"), - cl::Hidden); } LTOCodeGenerator::LTOCodeGenerator(LLVMContext &Context) @@ -511,8 +505,7 @@ bool LTOCodeGenerator::optimize(bool DisableVerify, bool DisableInline, return false; auto DiagFileOrErr = lto::setupOptimizationRemarks( - Context, LTORemarksFilename, LTOPassRemarksWithHotness, - LTOPassRemarksHotnessThreshold); + Context, LTORemarksFilename, LTOPassRemarksWithHotness); if (!DiagFileOrErr) { errs() << "Error: " << toString(DiagFileOrErr.takeError()) << "\n"; report_fatal_error("Can't get an output file for the remarks"); |