Re: Re: [PATCH] Add first-order recurrence autovectorization

2022-10-07 Thread 钟居哲
tches; richard.sandiford Subject: Re: [PATCH] Add first-order recurrence autovectorization On Thu, Oct 6, 2022 at 3:07 PM Richard Biener wrote: > > On Thu, Oct 6, 2022 at 2:13 PM Richard Biener > wrote: > > > > On Fri, Sep 30, 2022 at 10:00 AM wrote: > > > > > > From

Re: [PATCH] Add first-order recurrence autovectorization

2022-10-07 Thread Richard Biener via Gcc-patches
On Thu, Oct 6, 2022 at 3:07 PM Richard Biener wrote: > > On Thu, Oct 6, 2022 at 2:13 PM Richard Biener > wrote: > > > > On Fri, Sep 30, 2022 at 10:00 AM wrote: > > > > > > From: Ju-Zhe Zhong > > > > > > Hi, After fixing previous ICE. > > > I add full implementation (insert permutation to get co

Re: [PATCH] Add first-order recurrence autovectorization

2022-10-06 Thread Richard Biener via Gcc-patches
On Thu, Oct 6, 2022 at 2:13 PM Richard Biener wrote: > > On Fri, Sep 30, 2022 at 10:00 AM wrote: > > > > From: Ju-Zhe Zhong > > > > Hi, After fixing previous ICE. > > I add full implementation (insert permutation to get correct result.) > > > > The gimple IR is correct now I think: > > # t_21

Re: [PATCH] Add first-order recurrence autovectorization

2022-10-06 Thread Richard Biener via Gcc-patches
On Fri, Sep 30, 2022 at 10:00 AM wrote: > > From: Ju-Zhe Zhong > > Hi, After fixing previous ICE. > I add full implementation (insert permutation to get correct result.) > > The gimple IR is correct now I think: > # t_21 = PHI <_4(6), t_12(9)> > # i_22 = PHI > # vectp_a.6_26 = PHI > # v

[PATCH] Add first-order recurrence autovectorization

2022-09-30 Thread juzhe . zhong
From: Ju-Zhe Zhong Hi, After fixing previous ICE. I add full implementation (insert permutation to get correct result.) The gimple IR is correct now I think: # t_21 = PHI <_4(6), t_12(9)> # i_22 = PHI # vectp_a.6_26 = PHI # vect_vec_recur_.9_9 = PHI # vectp_b.11_7 = PHI # curr_c

Re: [Unfinished PATCH] Add first-order recurrence autovectorization

2022-09-29 Thread Richard Biener via Gcc-patches
On Thu, Sep 29, 2022 at 6:54 PM Richard Sandiford via Gcc-patches wrote: > > Thanks for posting the patch. > > juzhe.zh...@rivai.ai writes: > > From: Ju-Zhe Zhong > > > > gcc/ChangeLog: > > > > * tree-vect-loop.cc (vect_phi_first_order_recurrence_p): New > > function. > > (vect_a

Re: Re: [Unfinished PATCH] Add first-order recurrence autovectorization

2022-09-29 Thread 钟居哲
hes Subject: Re: [Unfinished PATCH] Add first-order recurrence autovectorization Thanks for posting the patch. juzhe.zh...@rivai.ai writes: > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * tree-vect-loop.cc (vect_phi_first_order_recurrence_p): New function. > (vect_analyze

Re: [Unfinished PATCH] Add first-order recurrence autovectorization

2022-09-29 Thread Richard Sandiford via Gcc-patches
Thanks for posting the patch. juzhe.zh...@rivai.ai writes: > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * tree-vect-loop.cc (vect_phi_first_order_recurrence_p): New function. > (vect_analyze_scalar_cycles_1): Classify first-order recurrence phi. > (vect_analyze_loop_operati

Re: [Unfinished PATCH] Add first-order recurrence autovectorization

2022-09-29 Thread Richard Biener via Gcc-patches
On Thu, Sep 29, 2022 at 1:07 PM wrote: > > From: Ju-Zhe Zhong > > gcc/ChangeLog: > > * tree-vect-loop.cc (vect_phi_first_order_recurrence_p): New function. > (vect_analyze_scalar_cycles_1): Classify first-order recurrence phi. > (vect_analyze_loop_operations): Add first-or

[Unfinished PATCH] Add first-order recurrence autovectorization

2022-09-29 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * tree-vect-loop.cc (vect_phi_first_order_recurrence_p): New function. (vect_analyze_scalar_cycles_1): Classify first-order recurrence phi. (vect_analyze_loop_operations): Add first-order recurrence autovectorization support. (ve