Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Kewen.Lin via Gcc-patches
on 2021/8/2 下午5:11, Richard Biener wrote: > On Mon, 2 Aug 2021, Kewen.Lin wrote: > >> on 2021/8/2 下午3:09, Richard Biener wrote: >>> On Mon, 2 Aug 2021, Kewen.Lin wrote: >>> on 2021/7/30 下午10:04, Kewen.Lin via Gcc-patches wrote: > Hi Richi, > > on 2021/7/30 下午7:34, Richard Biener w

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Richard Biener
On Mon, 2 Aug 2021, Kewen.Lin wrote: > on 2021/8/2 下午3:09, Richard Biener wrote: > > On Mon, 2 Aug 2021, Kewen.Lin wrote: > > > >> on 2021/7/30 下午10:04, Kewen.Lin via Gcc-patches wrote: > >>> Hi Richi, > >>> > >>> on 2021/7/30 下午7:34, Richard Biener wrote: > This adds a gather vectorization

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Kewen.Lin via Gcc-patches
on 2021/8/2 下午3:09, Richard Biener wrote: > On Mon, 2 Aug 2021, Kewen.Lin wrote: > >> on 2021/7/30 下午10:04, Kewen.Lin via Gcc-patches wrote: >>> Hi Richi, >>> >>> on 2021/7/30 下午7:34, Richard Biener wrote: This adds a gather vectorization capability to the vectorizer without target suppo

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Mon, 2 Aug 2021, Richard Sandiford wrote: > >> Richard Biener writes: >> > On Fri, 30 Jul 2021, Richard Sandiford wrote: >> >> > @@ -9456,6 +9499,51 @@ vectorizable_load (vec_info *vinfo, >> >> > data_ref = NULL_TREE; >> >> >

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Richard Biener
On Mon, 2 Aug 2021, Richard Sandiford wrote: > Richard Biener writes: > > On Fri, 30 Jul 2021, Richard Sandiford wrote: > >> > @@ -9456,6 +9499,51 @@ vectorizable_load (vec_info *vinfo, > >> > data_ref = NULL_TREE; > >> > break; > >> >

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > On Fri, 30 Jul 2021, Richard Sandiford wrote: >> > @@ -9456,6 +9499,51 @@ vectorizable_load (vec_info *vinfo, >> >data_ref = NULL_TREE; >> >break; >> > } >> > + else if (memory_access_type == VMAT_GATHER

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Richard Biener
On Fri, 30 Jul 2021, Richard Sandiford wrote: > Richard Biener writes: > > This adds a gather vectorization capability to the vectorizer > > without target support by decomposing the offset vector, doing > > sclar loads and then building a vector from the result. This > > is aimed mainly at case

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-02 Thread Richard Biener
On Mon, 2 Aug 2021, Kewen.Lin wrote: > on 2021/7/30 下午10:04, Kewen.Lin via Gcc-patches wrote: > > Hi Richi, > > > > on 2021/7/30 下午7:34, Richard Biener wrote: > >> This adds a gather vectorization capability to the vectorizer > >> without target support by decomposing the offset vector, doing > >

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-08-01 Thread Kewen.Lin via Gcc-patches
on 2021/7/30 下午10:04, Kewen.Lin via Gcc-patches wrote: > Hi Richi, > > on 2021/7/30 下午7:34, Richard Biener wrote: >> This adds a gather vectorization capability to the vectorizer >> without target support by decomposing the offset vector, doing >> sclar loads and then building a vector from the re

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-07-30 Thread Kewen.Lin via Gcc-patches
Hi Richi, on 2021/7/30 下午7:34, Richard Biener wrote: > This adds a gather vectorization capability to the vectorizer > without target support by decomposing the offset vector, doing > sclar loads and then building a vector from the result. This > is aimed mainly at cases where vectorizing the res

RE: [PATCH] Add emulated gather capability to the vectorizer

2021-07-30 Thread Tamar Christina via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+tamar.christina=arm@gcc.gnu.org> On Behalf Of Richard > Biener > Sent: Friday, July 30, 2021 12:34 PM > To: gcc-patches@gcc.gnu.org > Cc: Richard Sandiford > Subject: [PATCH] Add emulated gather capability to

Re: [PATCH] Add emulated gather capability to the vectorizer

2021-07-30 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > This adds a gather vectorization capability to the vectorizer > without target support by decomposing the offset vector, doing > sclar loads and then building a vector from the result. This > is aimed mainly at cases where vectorizing the rest of the loop > offsets the co

[PATCH] Add emulated gather capability to the vectorizer

2021-07-30 Thread Richard Biener
This adds a gather vectorization capability to the vectorizer without target support by decomposing the offset vector, doing sclar loads and then building a vector from the result. This is aimed mainly at cases where vectorizing the rest of the loop offsets the cost of vectorizing the gather. Not