Re: [PATCH 2/2 v2] rs6000: Guard density_test only for vector version

2021-05-11 Thread Kewen.Lin via Gcc-patches
Hi Segher, on 2021/5/11 上午4:12, Segher Boessenkool wrote: > Hi! > > On Sat, May 08, 2021 at 04:12:18PM +0800, Kewen.Lin wrote: >> --- a/gcc/config/rs6000/rs6000.c >> +++ b/gcc/config/rs6000/rs6000.c >> @@ -5234,6 +5234,8 @@ typedef struct _rs6000_cost_data >>/* For each vectorized loop, this

Re: [PATCH 2/2 v2] rs6000: Guard density_test only for vector version

2021-05-10 Thread Segher Boessenkool
Hi! On Sat, May 08, 2021 at 04:12:18PM +0800, Kewen.Lin wrote: > --- a/gcc/config/rs6000/rs6000.c > +++ b/gcc/config/rs6000/rs6000.c > @@ -5234,6 +5234,8 @@ typedef struct _rs6000_cost_data >/* For each vectorized loop, this var holds TRUE iff a non-memory vector > instruction is needed

[PATCH 2/2 v2] rs6000: Guard density_test only for vector version

2021-05-08 Thread Kewen.Lin via Gcc-patches
Hi, v1: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/569790.html This is the updated version with one new parameter costing_for_scalar passed by init_cost hook, instead of checking the passed data point identity. Bootstrapped/regtested on powerpc64le-linux-gnu P9. Is it ok for trunk? BR,