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] Fix cgraph_check_inline_limits


On Mon, 13 Mar 2006, Richard Guenther wrote:

> On Mon, 13 Mar 2006, Richard Guenther wrote:
> 
> > 
> > This patch fixes two things in cgraph_check_inline_limits, for one,
> > we were confused as to what callee list to walk (resulting in
> > times == 0 always), second, we decided not to inline even if the
> > inlining would result in the inlined-to-function size to shrink
> > (if it is already > its limit due to always_inline functions).
> > 
> > I'll bootstrap & regtest with a gcc_assert (times > 0) and put the
> > patch on the internal various-c++ tests machine this night.

A quick test shows that for tramp3d we get both faster and smaller
objects with the patch than without.  Space savings are 0.4% for
non-leafify and 0.1% for leafify builds while performance improves
2% for leafify and neutral for non-leafify.

Richard.


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