On 8/12/22 12:00, Robin Dapp wrote:
> Hi,
> 
> inspired by Power we also introduce -munroll-only-small-loops.  This
> implies activating -funroll-loops and -munroll-only-small-loops at -O2
> and above.
> 
> Bootstrapped and regtested.
> 
> This introduces one regression in gcc.dg/sms-compare-debug-1.c but
> currently dumps for sms are broken as well.  The difference is in the
> location of some INSN_DELETED notes so I would consider this a minor issue.
> 
> Is it OK?
> 
> Regards
>  Robin
> 
> gcc/ChangeLog:
> 
>       * common/config/s390/s390-common.cc: Enable -funroll-loops and
>       -munroll-only-small-loops for OPT_LEVELS_2_PLUS_SPEED_ONLY.
>       * config/s390/s390.cc (s390_loop_unroll_adjust): Do not unroll
>       loops larger than 12 instructions.
>       (s390_override_options_after_change): Set unroll options.
>       (s390_option_override_internal): Likewise.
>       * config/s390/s390.opt: Document munroll-only-small-loops.
> 
> gcc/testsuite/ChangeLog:
> 
>       * gcc.target/s390/vector/vec-copysign.c: Do not unroll.
>       * gcc.target/s390/zvector/autovec-double-quiet-uneq.c: Dito.
>       * gcc.target/s390/zvector/autovec-double-signaling-ltgt.c: Dito.
>       * gcc.target/s390/zvector/autovec-float-quiet-uneq.c: Dito.
>       * gcc.target/s390/zvector/autovec-float-signaling-ltgt.c: Dito.

Ok. Thanks!

Andreas

Reply via email to