16.08.2011, в 23:07, Vladimir Makarov <vmaka...@redhat.com> написал(а):

> After a lot of thinking and some experiments, I did not find a better 
> solution to considerably (like on 0.2% - 0.3% on ARM SPEC2000) improve code 
> size than use of non-regional RA for -Os.
> 

did you consider change of compile time because of single region RA?

> So the patch makes one region allocation is default for -Os.  I don't use 
> function optimize_function_for_size_p because I'd like to keep possibility 
> still set up regions independedly of used -O option.
> 
> This final patch removes ARM code size regression reported on 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48455.
> 
> The patch was successfully bootstrapped on x86-64 and ppc64 (actually the 
> generated code is not changed for -O2).
> 
> Is it ok to commit?
> 
> 2011-08-16  Vladimir Makarov <vmaka...@redhat.com>
> 
>        PR rtl-optimization/48455
>        * doc/invoke.texi (-fira-region): Document default values.
> 
>        * flags-types.h (enum ira_region): Add new value
>        IRA_REGION_AUTODETECT.
> 
>        * common.opt (fira-region): Set up initial value to
>        IRA_REGION_AUTODETECT.
> 
>        * toplev.c (process_options): Set up flag_ira_region depending on
>        -O options.
> 
>        * ira.c (ira.c): Remove optimize guard for ira_build.
> 
> <code-size.patch>

Reply via email to