This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Drop callee function size limits for IPA inlining


Hi,

On Thu, 17 Feb 2011, Jan Hubicka wrote:

> By removing the size limits that prevents inlining will push unit growth 
> down that in turn penalize cases that really do need it.

Easy: scale growth limits with estimated usefullness of an edge.  "this 
edge is totally boring, so inlining it must not grow the unit by even 1%, 
but that edge there, it's really really hot (or we have reason to believe 
that inlining it will do wonders and magic), so allow a unit growth of 
100% for it."  The hard part obviously is estimating the usefullness, but 
we knew that from the start :)


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]