diff options
| author | Adam Nemet <anemet@apple.com> | 2017-01-25 23:55:59 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2017-01-25 23:55:59 +0000 |
| commit | 2ada300821bacba2340b2d78a07eb69ba439eb6d (patch) | |
| tree | d67120df4ca8b17e907f1518aaf15d6c12462398 /llvm/tools | |
| parent | b3886dd84ffaf6e6881383613f912e4e0ce44628 (diff) | |
| download | bcm5719-llvm-2ada300821bacba2340b2d78a07eb69ba439eb6d.tar.gz bcm5719-llvm-2ada300821bacba2340b2d78a07eb69ba439eb6d.zip | |
[llc] Add -pass-remarks-with-hotness
Analogous to the code in opt, this enables hotness in opt-remarks.
llvm-svn: 293113
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/llc/llc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index ebe74617efb..1f1d214b68b 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -136,6 +136,11 @@ static cl::opt<std::string> StartAfter("start-after", static cl::list<std::string> IncludeDirs("I", cl::desc("include search path")); +static cl::opt<bool> PassRemarksWithHotness( + "pass-remarks-with-hotness", + cl::desc("With PGO, include profile count in optimization remarks"), + cl::Hidden); + namespace { static ManagedStatic<std::vector<std::string>> RunPassNames; @@ -284,6 +289,8 @@ int main(int argc, char **argv) { // Set a diagnostic handler that doesn't exit on the first error bool HasError = false; Context.setDiagnosticHandler(DiagnosticHandler, &HasError); + if (PassRemarksWithHotness) + Context.setDiagnosticHotnessRequested(true); // Compile the module TimeCompilations times to give better compile time // metrics. |

