Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-17 Thread Richard Biener via Gcc-patches
On Tue, 11 Oct 2022, juzhe.zh...@rivai.ai wrote: > Hi, I apply this patch in RVV downstrean. Tested it with a lot of vector > benchmark. It overal has a greate performance gain. > Maybe the last thing to merge this patch is wait for Richard Sandiford test > it in ARM SVE? > > By the way, would

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-17 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Tue, 11 Oct 2022, Richard Sandiford wrote: > >> Richard Biener writes: >> > On Mon, 10 Oct 2022, Andrew Stubbs wrote: >> >> On 10/10/2022 12:03, Richard Biener wrote: >> >> > The following picks up the prototype by Ju-Zhe Zhong for vectorizing >> >> > first order recur

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-14 Thread Richard Biener via Gcc-patches
On Fri, 14 Oct 2022, Andrew Stubbs wrote: > On 14/10/2022 08:07, Richard Biener wrote: > > On Tue, 11 Oct 2022, Richard Sandiford wrote: > > > >> Richard Biener writes: > >>> On Mon, 10 Oct 2022, Andrew Stubbs wrote: > On 10/10/2022 12:03, Richard Biener wrote: > > The following picks u

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-14 Thread Andrew Stubbs
On 14/10/2022 08:07, Richard Biener wrote: On Tue, 11 Oct 2022, Richard Sandiford wrote: Richard Biener writes: On Mon, 10 Oct 2022, Andrew Stubbs wrote: On 10/10/2022 12:03, Richard Biener wrote: The following picks up the prototype by Ju-Zhe Zhong for vectorizing first order recurrences.

Re: Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-14 Thread juzhe.zh...@rivai.ai
LGTM. juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-10-14 15:07 To: Richard Sandiford CC: Andrew Stubbs; gcc-patches; juzhe.zhong Subject: Re: [PATCH][RFT] Vectorization of first-order recurrences On Tue, 11 Oct 2022, Richard Sandiford wrote: > Richard Biener writes: > > O

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-14 Thread Richard Biener via Gcc-patches
On Tue, 11 Oct 2022, Richard Sandiford wrote: > Richard Biener writes: > > On Mon, 10 Oct 2022, Andrew Stubbs wrote: > >> On 10/10/2022 12:03, Richard Biener wrote: > >> > The following picks up the prototype by Ju-Zhe Zhong for vectorizing > >> > first order recurrences. That solves two TSVC mi

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-12 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > + /* First-order recurrence autovectorization needs to handle permutation > + with indices = [nunits-1, nunits, nunits+1, ...]. */ > + vec_perm_builder sel (nunits, 1, 3); > + for (int i = 0; i < 3; ++i) > +sel.quick_push (nunits - dist + i); > + vec_perm_indi

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-11 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Mon, 10 Oct 2022, Andrew Stubbs wrote: >> On 10/10/2022 12:03, Richard Biener wrote: >> > The following picks up the prototype by Ju-Zhe Zhong for vectorizing >> > first order recurrences. That solves two TSVC missed optimization PRs. >> > >> > There's a new scalar cy

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-11 Thread juzhe.zh...@rivai.ai
but Clang succeed ? I am familiar with LLVM. I think I can do this job. Thanks. juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-10-10 19:03 To: gcc-patches CC: richard.sandiford; ams; juzhe.zhong Subject: [PATCH][RFT] Vectorization of first-order recurrences The following picks up the

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-11 Thread Richard Biener via Gcc-patches
On Mon, 10 Oct 2022, Andrew Stubbs wrote: > On 10/10/2022 12:03, Richard Biener wrote: > > The following picks up the prototype by Ju-Zhe Zhong for vectorizing > > first order recurrences. That solves two TSVC missed optimization PRs. > > > > There's a new scalar cycle def kind, vect_first_order

Re: Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-10 Thread 钟居哲
0 21:57 To: Richard Biener; gcc-patches@gcc.gnu.org CC: richard.sandif...@arm.com; juzhe.zh...@rivai.ai Subject: Re: [PATCH][RFT] Vectorization of first-order recurrences On 10/10/2022 12:03, Richard Biener wrote: > The following picks up the prototype by Ju-Zhe Zhong for vectorizing > first o

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-10 Thread Andrew Stubbs
On 10/10/2022 12:03, Richard Biener wrote: The following picks up the prototype by Ju-Zhe Zhong for vectorizing first order recurrences. That solves two TSVC missed optimization PRs. There's a new scalar cycle def kind, vect_first_order_recurrence and it's handling of the backedge value vectori

Re: [PATCH][RFT] Vectorization of first-order recurrences

2022-10-10 Thread juzhe.zh...@rivai.ai
Thank you so much. I will apply this patch and test it in downstream RVV GCC (12.2.0) juzhe.zh...@rivai.ai From: Richard Biener Date: 2022-10-10 19:03 To: gcc-patches CC: richard.sandiford; ams; juzhe.zhong Subject: [PATCH][RFT] Vectorization of first-order recurrences The following picks up

[PATCH][RFT] Vectorization of first-order recurrences

2022-10-10 Thread Richard Biener via Gcc-patches
The following picks up the prototype by Ju-Zhe Zhong for vectorizing first order recurrences. That solves two TSVC missed optimization PRs. There's a new scalar cycle def kind, vect_first_order_recurrence and it's handling of the backedge value vectorization is complicated by the fact that the ve