Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Fri, 11 Aug 2023, juzhe.zh...@rivai.ai wrote: > >> Hi, Richi. >> >> > 1. Target is using loop MASK as the partial vector loop control. >> >> I don't think it checks for this? >> >> I am not sure whether I understand EXTRACT_LAST correctly. >> But if target doesn't use

Re: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread Richard Biener via Gcc-patches
recorded in the end. Richard. > Thanks. > > > juzhe.zh...@rivai.ai > > From: Richard Biener > Date: 2023-08-11 19:10 > To: juzhe.zh...@rivai.ai > CC: gcc-patches; richard.sandiford; linkw; krebbel > Subject: Re: Re: [PATCH V3] VECT: Support loop len control on EXT

Re: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread juzhe.zh...@rivai.ai
>1, vectype, NULL); > else check here the target supports VEC_EXTRACT > vect_record_loop_len (loop_vinfo, > &LOOP_VINFO_LENS (loop_vinfo), >

Re: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread Richard Biener via Gcc-patches
1, vectype, NULL); > else check here the target supports VEC_EXTRACT > vect_record_loop_len (loop_vinfo, > &LOOP_VINFO_LENS (loop_vinfo), > 1, vectype,

Re: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread juzhe.zh...@rivai.ai
loop_vinfo, &LOOP_VINFO_LENS (loop_vinfo), 1, vectype, 1); } Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2023-08-11 18:21 To: juzhe.zh...@rivai.ai CC: gcc-patches; richard.sandiford; linkw; kr

Re: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread Richard Biener via Gcc-patches
d a loop len. Just in this case this particular order would be important. > >> can we double-check this on powerpc and s390? > > Sure, I hope it can be beneficial to powerpc and s390. > And, I think Richard's comments are also very important so I am gonna wait > for i

Re: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread juzhe.zh...@rivai.ai
ches; richard.sandiford; linkw; krebbel Subject: Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization On Fri, 11 Aug 2023, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > Hi, Richard and Richi. > > This patch add support live vectorization by VEC_EXTRACT f

Re: [PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-11 Thread Richard Biener via Gcc-patches
On Fri, 11 Aug 2023, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > Hi, Richard and Richi. > > This patch add support live vectorization by VEC_EXTRACT for LEN loop control. > > Consider this following case: > > #include > > #define EXTRACT_LAST(TYPE)\ > TYPE __a

[PATCH V3] VECT: Support loop len control on EXTRACT_LAST vectorization

2023-08-10 Thread juzhe . zhong
From: Ju-Zhe Zhong Hi, Richard and Richi. This patch add support live vectorization by VEC_EXTRACT for LEN loop control. Consider this following case: #include #define EXTRACT_LAST(TYPE) \ TYPE __attribute__ ((noinline, noclone)) \ test_##TYPE (TYPE *x, int n, T