// make it almost guaranteed to be inlined.
//
if (Callee->hasInternalLinkage() && Callee->hasOneUse())
// make it almost guaranteed to be inlined.
//
if (Callee->hasInternalLinkage() && Callee->hasOneUse())
// If this function uses the coldcc calling convention, prefer not to inline
// it.
// If this function uses the coldcc calling convention, prefer not to inline
// it.
// Don't inline into something too big, which would make it bigger.
//
// Don't inline into something too big, which would make it bigger.
//
- InlineCost += Caller->size()/20;
+ InlineCost += Caller->size()/15;
// Look at the size of the callee. Each instruction counts as 5.
InlineCost += CalleeFI.NumInsts*5;
// Look at the size of the callee. Each instruction counts as 5.
InlineCost += CalleeFI.NumInsts*5;