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: [middle-end, patch 4/8] Add compiler a option to turn on indirect inlining


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


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