This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [middle-end, patch 4/8] Add compiler a option to turn on indirect inlining
- From: Jan Hubicka <jh at suse dot cz>
- To: Martin Jambor <mjambor at suse dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Jan Hubicka <jh at suse dot cz>, Kenneth Zadeck <zadeck at naturalbridge dot com>, Razya Ladelsky <RAZYA at il dot ibm dot com>, Paolo Carlini <paolo dot carlini at oracle dot com>
- Date: Tue, 15 Jul 2008 23:22:01 +0200
- Subject: Re: [middle-end, patch 4/8] Add compiler a option to turn on indirect inlining
- References: <20080715194347.569852675@virgil.suse.cz> <20080715194421.120054425@virgil.suse.cz>
> This patch adds an option to turn on inlining of indirect calls. The
> option is also automatically on for when compiling with -O3.
>
> I have added documentation of the new option to this patch.
>
>
> 2008-07-15 Martin Jambor <mjambor@suse.cz>
>
> * doc/invoke.texi (Optimize options): Add description of
> -fearly-inlining.
>
> * common.opt (flag_indirect_inlining): New flag.
>
> * opts.c (decode_options): Set flag_indirect_inlining when
> optimize >= 3
OK (after other patches are approved too of course ;)
> +@item -findirect-inlining
> +@opindex findirect-inlining
> +Inline also indirect calls that are discovered to be known at compile
> +time thanks to previous inlining. This option has any effect only
> +when inlining itself is turned on by the @option{-finline-functions}
> +option (as opposed to early inlining which is not enough to make this
> +work).
> +
> +Enabled at level @option{-O3}.
I think -O2/-Os is quite appropriate here too.
Also should be mentioned in changes.html.
Honza
> +
> @item -finline-functions
> @opindex finline-functions
> Integrate all simple functions into their callers. The compiler
>
> --