Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2023-02-01 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 17 Jan 2023 at 17:24, Prathamesh Kulkarni wrote: > > On Mon, 26 Dec 2022 at 09:56, Prathamesh Kulkarni > wrote: > > > > On Tue, 13 Dec 2022 at 11:35, Prathamesh Kulkarni > > wrote: > > > > > > On Tue, 6 Dec 2022 at 21:00, Richard Sandiford > > > wrote: > > > > > > > > Prathamesh Kulkarn

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2023-01-17 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 26 Dec 2022 at 09:56, Prathamesh Kulkarni wrote: > > On Tue, 13 Dec 2022 at 11:35, Prathamesh Kulkarni > wrote: > > > > On Tue, 6 Dec 2022 at 21:00, Richard Sandiford > > wrote: > > > > > > Prathamesh Kulkarni via Gcc-patches writes: > > > > On Fri, 4 Nov 2022 at 14:00, Prathamesh Kulka

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-12-25 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 13 Dec 2022 at 11:35, Prathamesh Kulkarni wrote: > > On Tue, 6 Dec 2022 at 21:00, Richard Sandiford > wrote: > > > > Prathamesh Kulkarni via Gcc-patches writes: > > > On Fri, 4 Nov 2022 at 14:00, Prathamesh Kulkarni > > > wrote: > > >> > > >> On Mon, 31 Oct 2022 at 15:27, Richard Sandif

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-12-12 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 6 Dec 2022 at 21:00, Richard Sandiford wrote: > > Prathamesh Kulkarni via Gcc-patches writes: > > On Fri, 4 Nov 2022 at 14:00, Prathamesh Kulkarni > > wrote: > >> > >> On Mon, 31 Oct 2022 at 15:27, Richard Sandiford > >> wrote: > >> > > >> > Prathamesh Kulkarni writes: > >> > > On Wed,

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-12-06 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni via Gcc-patches writes: > On Fri, 4 Nov 2022 at 14:00, Prathamesh Kulkarni > wrote: >> >> On Mon, 31 Oct 2022 at 15:27, Richard Sandiford >> wrote: >> > >> > Prathamesh Kulkarni writes: >> > > On Wed, 26 Oct 2022 at 21:07, Richard Sandiford >> > > wrote: >> > >> >> > >> Sor

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-11-28 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 21 Nov 2022 at 14:37, Prathamesh Kulkarni wrote: > > On Fri, 4 Nov 2022 at 14:00, Prathamesh Kulkarni > wrote: > > > > On Mon, 31 Oct 2022 at 15:27, Richard Sandiford > > wrote: > > > > > > Prathamesh Kulkarni writes: > > > > On Wed, 26 Oct 2022 at 21:07, Richard Sandiford > > > > wrot

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-11-21 Thread Prathamesh Kulkarni via Gcc-patches
On Fri, 4 Nov 2022 at 14:00, Prathamesh Kulkarni wrote: > > On Mon, 31 Oct 2022 at 15:27, Richard Sandiford > wrote: > > > > Prathamesh Kulkarni writes: > > > On Wed, 26 Oct 2022 at 21:07, Richard Sandiford > > > wrote: > > >> > > >> Sorry for the slow response. I wanted to find some time to t

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-11-04 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 31 Oct 2022 at 15:27, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Wed, 26 Oct 2022 at 21:07, Richard Sandiford > > wrote: > >> > >> Sorry for the slow response. I wanted to find some time to think > >> about this a bit more. > >> > >> Prathamesh Kulkarni writes: > >

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-10-31 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Wed, 26 Oct 2022 at 21:07, Richard Sandiford > wrote: >> >> Sorry for the slow response. I wanted to find some time to think >> about this a bit more. >> >> Prathamesh Kulkarni writes: >> > On Fri, 30 Sept 2022 at 21:38, Richard Sandiford >> > wrote: >> >> >> >

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-10-28 Thread Prathamesh Kulkarni via Gcc-patches
On Wed, 26 Oct 2022 at 21:07, Richard Sandiford wrote: > > Sorry for the slow response. I wanted to find some time to think > about this a bit more. > > Prathamesh Kulkarni writes: > > On Fri, 30 Sept 2022 at 21:38, Richard Sandiford > > wrote: > >> > >> Richard Sandiford via Gcc-patches write

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-10-26 Thread Richard Sandiford via Gcc-patches
Sorry for the slow response. I wanted to find some time to think about this a bit more. Prathamesh Kulkarni writes: > On Fri, 30 Sept 2022 at 21:38, Richard Sandiford > wrote: >> >> Richard Sandiford via Gcc-patches writes: >> > Prathamesh Kulkarni writes: >> >> Sorry to ask a silly question

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-10-24 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 17 Oct 2022 at 16:02, Prathamesh Kulkarni wrote: > > On Mon, 10 Oct 2022 at 16:18, Prathamesh Kulkarni > wrote: > > > > On Fri, 30 Sept 2022 at 21:38, Richard Sandiford > > wrote: > > > > > > Richard Sandiford via Gcc-patches writes: > > > > Prathamesh Kulkarni writes: > > > >> Sorry t

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-10-17 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 10 Oct 2022 at 16:18, Prathamesh Kulkarni wrote: > > On Fri, 30 Sept 2022 at 21:38, Richard Sandiford > wrote: > > > > Richard Sandiford via Gcc-patches writes: > > > Prathamesh Kulkarni writes: > > >> Sorry to ask a silly question but in which case shall we select 2nd > > >> vector ?

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-10-10 Thread Prathamesh Kulkarni via Gcc-patches
On Fri, 30 Sept 2022 at 21:38, Richard Sandiford wrote: > > Richard Sandiford via Gcc-patches writes: > > Prathamesh Kulkarni writes: > >> Sorry to ask a silly question but in which case shall we select 2nd vector > >> ? > >> For num_poly_int_coeffs == 2, > >> a1 /trunc n1 == (a1 + 0x) / (n1.co

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-30 Thread Richard Sandiford via Gcc-patches
Richard Sandiford via Gcc-patches writes: > Prathamesh Kulkarni writes: >> Sorry to ask a silly question but in which case shall we select 2nd vector ? >> For num_poly_int_coeffs == 2, >> a1 /trunc n1 == (a1 + 0x) / (n1.coeffs[0] + n1.coeffs[1]*x) >> If a1/trunc n1 succeeds, >> 0 / n1.coeffs[1] =

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-30 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Tue, 27 Sept 2022 at 01:59, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Fri, 23 Sept 2022 at 21:33, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > On Tue, 20 Sept 2022 at 18:09, Richard Sandiford >> >> >

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-30 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 27 Sept 2022 at 01:59, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Fri, 23 Sept 2022 at 21:33, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Tue, 20 Sept 2022 at 18:09, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarn

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-26 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Fri, 23 Sept 2022 at 21:33, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Tue, 20 Sept 2022 at 18:09, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > On Mon, 12 Sept 2022 at 19:57, Richard Sandiford >> >> >

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-26 Thread Prathamesh Kulkarni via Gcc-patches
On Fri, 23 Sept 2022 at 21:33, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Tue, 20 Sept 2022 at 18:09, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Mon, 12 Sept 2022 at 19:57, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarn

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-23 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Tue, 20 Sept 2022 at 18:09, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Mon, 12 Sept 2022 at 19:57, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> >> The VLA encoding encodes the first N patterns explicitly.

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-23 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 20 Sept 2022 at 18:09, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Mon, 12 Sept 2022 at 19:57, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> >> The VLA encoding encodes the first N patterns explicitly. The > >> >> npatterns/nelts_per_patter

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-20 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Mon, 12 Sept 2022 at 19:57, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> >> The VLA encoding encodes the first N patterns explicitly. The >> >> npatterns/nelts_per_pattern values then describe how to extend that >> >> initial sequence to an ar

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-15 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 12 Sept 2022 at 19:57, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Mon, 5 Sept 2022 at 15:51, Richard Sandiford > > wrote: > >> > >> Sorry for the slow reply. I wrote a response a couple of weeks ago > >> but I think it get lost in a machine outage. > >> > >> Pratham

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-12 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Mon, 5 Sept 2022 at 15:51, Richard Sandiford > wrote: >> >> Sorry for the slow reply. I wrote a response a couple of weeks ago >> but I think it get lost in a machine outage. >> >> Prathamesh Kulkarni writes: >> > Hi, >> > The attached prototype patch extends fo

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-09 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 5 Sept 2022 at 15:51, Richard Sandiford wrote: > > Sorry for the slow reply. I wrote a response a couple of weeks ago > but I think it get lost in a machine outage. > > Prathamesh Kulkarni writes: > > Hi, > > The attached prototype patch extends fold_vec_perm to fold VEC_PERM_EXPR > > in

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-05 Thread Richard Sandiford via Gcc-patches
Sorry for the slow reply. I wrote a response a couple of weeks ago but I think it get lost in a machine outage. Prathamesh Kulkarni writes: > Hi, > The attached prototype patch extends fold_vec_perm to fold VEC_PERM_EXPR > in VLA manner, and currently handles the following cases: > (a) fixed len

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-09-05 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 29 Aug 2022 at 11:38, Prathamesh Kulkarni wrote: > > On Wed, 17 Aug 2022 at 18:09, Prathamesh Kulkarni > wrote: > > > > Hi, > > The attached prototype patch extends fold_vec_perm to fold VEC_PERM_EXPR > > in VLA manner, and currently handles the following cases: > > (a) fixed len arg0, ar

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2022-08-28 Thread Prathamesh Kulkarni via Gcc-patches
On Wed, 17 Aug 2022 at 18:09, Prathamesh Kulkarni wrote: > > Hi, > The attached prototype patch extends fold_vec_perm to fold VEC_PERM_EXPR > in VLA manner, and currently handles the following cases: > (a) fixed len arg0, arg1 and fixed len sel. > (b) fixed len arg0, arg1 and vla sel > (c) vla arg