Mention callee in missed inliner remark

This commit is contained in:
Adam Nemet
2017-11-14 09:35:37 -08:00
parent aac1c304d0
commit 18a588ee46
3 changed files with 12 additions and 5 deletions

View File

@@ -438,7 +438,8 @@ bool SILPerformanceInliner::isProfitableToInline(
ORE.emit([&]() {
using namespace OptRemark;
return RemarkMissed("NoInlinedCost", *AI.getInstruction())
<< "Not profitable to inline (cost = " << NV("Cost", CalleeCost)
<< "Not profitable to inline function " << NV("Callee", Callee)
<< " (cost = " << NV("Cost", CalleeCost)
<< ", benefit = " << NV("Benefit", Benefit) << ")";
});
return false;