diff options
author | Dehao Chen <dehao@google.com> | 2017-04-10 20:49:16 +0000 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2017-04-10 20:49:16 +0000 |
commit | d4a3397861f13e912f77371853964ff747a178cf (patch) | |
tree | 96376f872033d8b00b03794728518f5878183758 /llvm/lib/Transforms/IPO/SampleProfile.cpp | |
parent | 635e5056752adeca6bf5a609621a5cc5b0929130 (diff) | |
download | bcm5719-llvm-d4a3397861f13e912f77371853964ff747a178cf.tar.gz bcm5719-llvm-d4a3397861f13e912f77371853964ff747a178cf.zip |
Emit less compiler optimization remarks in samplepgo to reduce a call to findCalleeFunctionSamples which is going to be refactored.
Summary: Now the SamplePGO support is more stable, we do not need so many verbose optimization remarks emitted.
Reviewers: dnovillo, davidxl
Reviewed By: davidxl
Subscribers: fhahn, llvm-commits
Differential Revision: https://reviews.llvm.org/D31826
llvm-svn: 299883
Diffstat (limited to 'llvm/lib/Transforms/IPO/SampleProfile.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/SampleProfile.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/SampleProfile.cpp b/llvm/lib/Transforms/IPO/SampleProfile.cpp index d2ccbd811ba..bae08d9b9ee 100644 --- a/llvm/lib/Transforms/IPO/SampleProfile.cpp +++ b/llvm/lib/Transforms/IPO/SampleProfile.cpp @@ -664,13 +664,11 @@ bool SampleProfileLoader::inlineHotFunctions( continue; } DebugLoc DLoc = I->getDebugLoc(); - uint64_t NumSamples = findCalleeFunctionSamples(*I)->getTotalSamples(); if (InlineFunction(CallSite(DI), IFI)) { LocalChanged = true; emitOptimizationRemark(Ctx, DEBUG_TYPE, F, DLoc, Twine("inlined hot callee '") + - CalledFunction->getName() + "' with " + - Twine(NumSamples) + " samples into '" + + CalledFunction->getName() + "' into '" + F.getName() + "'"); } } |