Re: [PATCH] vect: Add extraction cost for slp reduc

2021-08-16 Thread Richard Biener via Gcc-patches
On Mon, Aug 16, 2021 at 9:16 AM Kewen.Lin wrote: > > Hi Richi, > > Thanks for the comments! > > on 2021/8/16 下午2:49, Richard Biener wrote: > > On Mon, Aug 16, 2021 at 8:03 AM Kewen.Lin wrote: > >> > >> Hi, > >> > >> IIUC, the function vectorizable_bb_reduc_epilogue missed to > >> consider the cos

Re: [PATCH] vect: Add extraction cost for slp reduc

2021-08-16 Thread Kewen.Lin via Gcc-patches
Hi Richi, Thanks for the comments! on 2021/8/16 下午2:49, Richard Biener wrote: > On Mon, Aug 16, 2021 at 8:03 AM Kewen.Lin wrote: >> >> Hi, >> >> IIUC, the function vectorizable_bb_reduc_epilogue missed to >> consider the cost to extract the final value from the vector >> for reduc operations. T

Re: [PATCH] vect: Add extraction cost for slp reduc

2021-08-15 Thread Richard Biener via Gcc-patches
On Mon, Aug 16, 2021 at 8:03 AM Kewen.Lin wrote: > > Hi, > > IIUC, the function vectorizable_bb_reduc_epilogue missed to > consider the cost to extract the final value from the vector > for reduc operations. This patch is to add one time of > vec_to_scalar cost for extracting. > > Bootstrapped &

[PATCH] vect: Add extraction cost for slp reduc

2021-08-15 Thread Kewen.Lin via Gcc-patches
Hi, IIUC, the function vectorizable_bb_reduc_epilogue missed to consider the cost to extract the final value from the vector for reduc operations. This patch is to add one time of vec_to_scalar cost for extracting. Bootstrapped & regtested on powerpc64le-linux-gnu P9. The testing on x86_64 and a