This is the mail archive of the
mailing list for the GCC project.
Re: [patch] function inlining when optimize for size (PR11830)
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Gábor Lóki <loki at inf dot u-szeged dot hu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Mar 2004 12:51:40 +0100
- Subject: Re: [patch] function inlining when optimize for size (PR11830)
- References: <405805BD.email@example.com>
> I have examined if it is possible to use the function inlining when
> optimizing for size. I've found we can use it without any risk because
> when the max-inline-insns-* parameters were set with a small value
> the function inlining doesn't inline large functions.
> It is also fix the PR11830 (http://gcc.gnu.org/PR11830).
> I measuerd the size effect on CSiBE and this patch made about 1% code
> size save (arm:1.212%, i386:1.024%, i686:1.029%, m68k:0.795%,
> mips:1.096%, ppc:1.106%).
This looks very nice. Do you have any numbers for single/auto limits
set to 10? That would allow inlining the functions that have exactly
one function call in them possibly elliminating the need for wrapper,
but not sure if it would pay back.