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


On Thu, 17 Feb 2011, Michael Matz wrote:

> 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 :)

Yep, currently we have "it's useful if the function and the unit are
small" - certainly a somewhat odd way of defining usefullness ;)

Richard.


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