Re: [PATCH v2] vect/rs6000: Support vector with length cost modeling

2020-07-26 Thread Kewen.Lin via Gcc-patches
Hi Segher, Thanks for the comments! on 2020/7/23 上午1:49, Segher Boessenkool wrote: > Hi! > > On Wed, Jul 22, 2020 at 09:26:39AM +0800, Kewen.Lin wrote: >> +/* For some target specific vectorization cost which can't be handled per >> stmt, >> + we check the requisite conditions and adjust the

Re: [PATCH v2] vect/rs6000: Support vector with length cost modeling

2020-07-22 Thread Segher Boessenkool
Hi! On Wed, Jul 22, 2020 at 09:26:39AM +0800, Kewen.Lin wrote: > +/* For some target specific vectorization cost which can't be handled per > stmt, > + we check the requisite conditions and adjust the vectorization cost > + accordingly if satisfied. One typical example is to model shift cost

Re: [PATCH v2] vect/rs6000: Support vector with length cost modeling

2020-07-22 Thread Richard Sandiford
"Kewen.Lin" writes: > Hi Richard, > > on 2020/7/21 下午3:57, Richard Biener wrote: >> On Tue, Jul 21, 2020 at 7:52 AM Kewen.Lin wrote: >>> >>> Hi, >>> >>> This patch is to add the cost modeling for vector with length, >>> it mainly follows what we generate for vector with length in >>> functions ve

Re: [PATCH v2] vect/rs6000: Support vector with length cost modeling

2020-07-22 Thread Kewen.Lin via Gcc-patches
Hi Richard, on 2020/7/22 下午2:38, Richard Biener wrote: > On Wed, Jul 22, 2020 at 3:26 AM Kewen.Lin wrote: >> >> Hi Richard, >> >> on 2020/7/21 下午3:57, Richard Biener wrote: >>> On Tue, Jul 21, 2020 at 7:52 AM Kewen.Lin wrote: Hi, This patch is to add the cost modeling for vec

Re: [PATCH v2] vect/rs6000: Support vector with length cost modeling

2020-07-21 Thread Richard Biener via Gcc-patches
On Wed, Jul 22, 2020 at 3:26 AM Kewen.Lin wrote: > > Hi Richard, > > on 2020/7/21 下午3:57, Richard Biener wrote: > > On Tue, Jul 21, 2020 at 7:52 AM Kewen.Lin wrote: > >> > >> Hi, > >> > >> This patch is to add the cost modeling for vector with length, > >> it mainly follows what we generate for v

[PATCH v2] vect/rs6000: Support vector with length cost modeling

2020-07-21 Thread Kewen.Lin via Gcc-patches
Hi Richard, on 2020/7/21 下午3:57, Richard Biener wrote: > On Tue, Jul 21, 2020 at 7:52 AM Kewen.Lin wrote: >> >> Hi, >> >> This patch is to add the cost modeling for vector with length, >> it mainly follows what we generate for vector with length in >> functions vect_set_loop_controls_directly and