guojiufu <guoji...@linux.ibm.com> writes:

> From: Jiufu Guo <guoji...@linux.ibm.com>
>
> --- a/gcc/config/rs6000/rs6000.c
> +++ b/gcc/config/rs6000/rs6000.c
> @@ -4567,7 +4567,12 @@ rs6000_option_override_internal (bool global_init_p)
>           unroll_only_small_loops = 0;
>         if (!global_options_set.x_flag_rename_registers)
>           flag_rename_registers = 1;
> +       if (!global_options_set.x_flag_cunroll_grow_size)
> +         flag_cunroll_grow_size = 1;
>       }
> +      else
> +     if (!global_options_set.x_flag_cunroll_grow_size)
> +       flag_cunroll_grow_size = flag_peel_loops;

As this patch V2 1/2, also update here accordingy:
         flag_cunroll_grow_size = flag_peel_loops || optimize >= 3;
>  
>        /* If using typedef char *va_list, signal that
>        __builtin_va_start (&ap, 0) can be optimized to

BR,
Jiufu

Reply via email to