Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Richard Biener
On Wed, 21 Jul 2021, Hongtao Liu wrote: > On Wed, Jul 21, 2021 at 4:16 PM Richard Biener wrote: > > > > On Wed, 21 Jul 2021, Hongtao Liu wrote: > > > > > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > > > > > On Fri, Jul 16

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Wed, Jul 21, 2021 at 4:16 PM Richard Biener wrote: > > On Wed, 21 Jul 2021, Hongtao Liu wrote: > > > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener > > > > wrote: > > > > >

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Richard Biener
On Wed, 21 Jul 2021, Hongtao Liu wrote: > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > > > On Thu, 15

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-21 Thread Hongtao Liu via Gcc-patches
On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > > > OK, guess

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-20 Thread Richard Biener
On Tue, 20 Jul 2021, Richard Biener wrote: > On Thu, 15 Jul 2021, Richard Sandiford wrote: > > > Richard Biener writes: > > > The following extends the existing loop masking support using > > > SVE WHILE_ULT to x86 by proving an alternate way to produce the > > > mask using VEC_COND_EXPRs. So w

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-20 Thread Richard Biener
On Thu, 15 Jul 2021, Richard Sandiford wrote: > Richard Biener writes: > > The following extends the existing loop masking support using > > SVE WHILE_ULT to x86 by proving an alternate way to produce the > > mask using VEC_COND_EXPRs. So with --param vect-partial-vector-usage > > you can now en

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-20 Thread Richard Biener
On Tue, 20 Jul 2021, Hongtao Liu wrote: > On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > > > On Thu, 15

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-20 Thread Hongtao Liu via Gcc-patches
On Tue, Jul 20, 2021 at 3:38 PM Richard Biener wrote: > > On Tue, 20 Jul 2021, Hongtao Liu wrote: > > > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > > > OK, guess

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-20 Thread Richard Biener
On Tue, 20 Jul 2021, Hongtao Liu wrote: > On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > > > OK, guess I was more looking at > > > > > > > > #define N 32 > > > > int foo (unsig

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-19 Thread Hongtao Liu via Gcc-patches
On Fri, Jul 16, 2021 at 5:11 PM Richard Biener wrote: > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > On Thu, 15 Jul 2021, Richard Biener wrote: > > > > > OK, guess I was more looking at > > > > > > #define N 32 > > > int foo (unsigned long *a, unsigned long * __restrict b, > > > uns

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-16 Thread Richard Biener
On Thu, 15 Jul 2021, Richard Biener wrote: > On Thu, 15 Jul 2021, Richard Biener wrote: > > > OK, guess I was more looking at > > > > #define N 32 > > int foo (unsigned long *a, unsigned long * __restrict b, > > unsigned int *c, unsigned int * __restrict d, > > int n) > > { > >

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener
On Fri, 16 Jul 2021, Hongtao Liu wrote: > On Thu, Jul 15, 2021 at 7:48 PM Richard Biener wrote: > > > > On Thu, 15 Jul 2021, Hongtao Liu wrote: > > > > > On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches > > > wrote: > > > > > > > > On Thu, Jul 15, 2021 at 12:30 PM Richard Biener

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Hongtao Liu via Gcc-patches
On Thu, Jul 15, 2021 at 7:48 PM Richard Biener wrote: > > On Thu, 15 Jul 2021, Hongtao Liu wrote: > > > On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches > > wrote: > > > > > > On Thu, Jul 15, 2021 at 12:30 PM Richard Biener wrote: > > > > > > > > The following extends the existing

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener
On Thu, 15 Jul 2021, Richard Biener wrote: > On Thu, 15 Jul 2021, Richard Sandiford wrote: > > > Richard Biener writes: > > > On Thu, 15 Jul 2021, Hongtao Liu wrote: > > > > > >> On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches > > >> wrote: > > >> > > > >> > On Thu, Jul 15, 2021

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener
On Thu, 15 Jul 2021, Richard Sandiford wrote: > Richard Biener writes: > > On Thu, 15 Jul 2021, Hongtao Liu wrote: > > > >> On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches > >> wrote: > >> > > >> > On Thu, Jul 15, 2021 at 12:30 PM Richard Biener > >> > wrote: > >> > > > >> > > T

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Thu, 15 Jul 2021, Hongtao Liu wrote: > >> On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches >> wrote: >> > >> > On Thu, Jul 15, 2021 at 12:30 PM Richard Biener wrote: >> > > >> > > The following extends the existing loop masking support using >> > > SVE W

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener
On Thu, 15 Jul 2021, Richard Sandiford wrote: > Richard Biener writes: > > The following extends the existing loop masking support using > > SVE WHILE_ULT to x86 by proving an alternate way to produce the > > mask using VEC_COND_EXPRs. So with --param vect-partial-vector-usage > > you can now en

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > The following extends the existing loop masking support using > SVE WHILE_ULT to x86 by proving an alternate way to produce the > mask using VEC_COND_EXPRs. So with --param vect-partial-vector-usage > you can now enable masked vectorized epilogues (=1) or fully > masked v

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener
On Thu, 15 Jul 2021, Hongtao Liu wrote: > On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches > wrote: > > > > On Thu, Jul 15, 2021 at 12:30 PM Richard Biener wrote: > > > > > > The following extends the existing loop masking support using > > > SVE WHILE_ULT to x86 by proving an alte

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Hongtao Liu via Gcc-patches
On Thu, Jul 15, 2021 at 6:45 PM Richard Biener via Gcc-patches wrote: > > On Thu, Jul 15, 2021 at 12:30 PM Richard Biener wrote: > > > > The following extends the existing loop masking support using > > SVE WHILE_ULT to x86 by proving an alternate way to produce the > > mask using VEC_COND_EXPRs.

Re: [PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener via Gcc-patches
On Thu, Jul 15, 2021 at 12:30 PM Richard Biener wrote: > > The following extends the existing loop masking support using > SVE WHILE_ULT to x86 by proving an alternate way to produce the > mask using VEC_COND_EXPRs. So with --param vect-partial-vector-usage > you can now enable masked vectorized

[PATCH 2/2][RFC] Add loop masking support for x86

2021-07-15 Thread Richard Biener
The following extends the existing loop masking support using SVE WHILE_ULT to x86 by proving an alternate way to produce the mask using VEC_COND_EXPRs. So with --param vect-partial-vector-usage you can now enable masked vectorized epilogues (=1) or fully masked vector loops (=2). What's missing