[LTO] Support filtering by hotness threshold
authorAdam Nemet <anemet@apple.com>
Mon, 26 Feb 2018 18:37:45 +0000 (18:37 +0000)
committerAdam Nemet <anemet@apple.com>
Mon, 26 Feb 2018 18:37:45 +0000 (18:37 +0000)
commitb4ce3573c435aca292e3e919ed8103a054be5616
tree594580de6ed815bbc671633affcd50648e1cf07b
parent061f3589ccae489989c4a501dab733b9605cb0e4
[LTO] Support filtering by hotness threshold

This wires up -pass-remarks-hotness-threshold to LTO and ThinLTO.

Next is to change the clang driver to pass this
with -fdiagnostics-hotness-threshold.

Differential Revision: https://reviews.llvm.org/D41465

llvm-svn: 326107
llvm/include/llvm/LTO/Config.h
llvm/include/llvm/LTO/LTO.h
llvm/lib/LTO/LTO.cpp
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/LTO/ThinLTOCodeGenerator.cpp
llvm/test/LTO/X86/diagnostic-handler-remarks-with-hotness.ll
llvm/test/ThinLTO/X86/diagnostic-handler-remarks-with-hotness.ll