mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mention callee in missed inliner remark
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user