Re: [RFC] Vectorization of indexed elements

2013-12-06 Thread Richard Biener
On Wed, 4 Dec 2013, Vidya Praveen wrote: > Hi Richi, > > Apologies for the late response. I was on vacation. > > On Mon, Oct 14, 2013 at 09:04:58AM +0100, Richard Biener wrote: > > > void > > > foo (int *__restrict__ a, > > > int *__restrict__ b, > > > int c) > > > { > > > int i; > >

Re: [RFC] Vectorization of indexed elements

2013-12-04 Thread Vidya Praveen
Hi Jakub, Apologies for the late response. On Fri, Oct 11, 2013 at 04:05:24PM +0100, Jakub Jelinek wrote: > On Fri, Oct 11, 2013 at 03:54:08PM +0100, Vidya Praveen wrote: > > Here's a compilable example: > > > > void > > foo (int *__restrict__ a, > > int *__restrict__ b, > > int *__re

Re: [RFC] Vectorization of indexed elements

2013-12-04 Thread Vidya Praveen
Hi Richi, Apologies for the late response. I was on vacation. On Mon, Oct 14, 2013 at 09:04:58AM +0100, Richard Biener wrote: > On Fri, 11 Oct 2013, Vidya Praveen wrote: > > > On Tue, Oct 01, 2013 at 09:26:25AM +0100, Richard Biener wrote: > > > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > >

Re: [RFC] Vectorization of indexed elements

2013-10-14 Thread Richard Biener
On Fri, 11 Oct 2013, Vidya Praveen wrote: > On Tue, Oct 01, 2013 at 09:26:25AM +0100, Richard Biener wrote: > > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > > > On Mon, Sep 30, 2013 at 02:19:32PM +0100, Richard Biener wrote: > > > > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > > > > > > >

Re: [RFC] Vectorization of indexed elements

2013-10-11 Thread Jakub Jelinek
On Fri, Oct 11, 2013 at 03:54:08PM +0100, Vidya Praveen wrote: > Here's a compilable example: > > void > foo (int *__restrict__ a, > int *__restrict__ b, > int *__restrict__ c) > { > int i; > > for (i = 0; i < 8; i++) > a[i] = b[i] * c[2]; > } > > This is vectorized by duplica

Re: [RFC] Vectorization of indexed elements

2013-10-11 Thread Vidya Praveen
On Tue, Oct 01, 2013 at 09:26:25AM +0100, Richard Biener wrote: > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > On Mon, Sep 30, 2013 at 02:19:32PM +0100, Richard Biener wrote: > > > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > > > > > On Fri, Sep 27, 2013 at 04:19:45PM +0100, Vidya Praveen w

Re: [RFC] Vectorization of indexed elements

2013-10-01 Thread Richard Biener
On Mon, 30 Sep 2013, Vidya Praveen wrote: > On Mon, Sep 30, 2013 at 02:19:32PM +0100, Richard Biener wrote: > > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > > > On Fri, Sep 27, 2013 at 04:19:45PM +0100, Vidya Praveen wrote: > > > > On Fri, Sep 27, 2013 at 03:50:08PM +0100, Vidya Praveen wrote:

Re: [RFC] Vectorization of indexed elements

2013-09-30 Thread Vidya Praveen
On Mon, Sep 30, 2013 at 02:19:32PM +0100, Richard Biener wrote: > On Mon, 30 Sep 2013, Vidya Praveen wrote: > > > On Fri, Sep 27, 2013 at 04:19:45PM +0100, Vidya Praveen wrote: > > > On Fri, Sep 27, 2013 at 03:50:08PM +0100, Vidya Praveen wrote: > > > [...] > > > > > > I can't really insist on the

Re: [RFC] Vectorization of indexed elements

2013-09-30 Thread Richard Biener
On Mon, 30 Sep 2013, Vidya Praveen wrote: > On Fri, Sep 27, 2013 at 04:19:45PM +0100, Vidya Praveen wrote: > > On Fri, Sep 27, 2013 at 03:50:08PM +0100, Vidya Praveen wrote: > > [...] > > > > > I can't really insist on the single lane load.. something like: > > > > > > > > > > vc:V4SI[0] = c > >

Re: [RFC] Vectorization of indexed elements

2013-09-30 Thread Vidya Praveen
On Wed, Sep 25, 2013 at 10:22:05AM +0100, Richard Biener wrote: > On Tue, 24 Sep 2013, Vidya Praveen wrote: > > > On Tue, Sep 10, 2013 at 09:25:32AM +0100, Richard Biener wrote: > > > On Mon, 9 Sep 2013, Marc Glisse wrote: > > > > > > > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > > > > > > >

Re: [RFC] Vectorization of indexed elements

2013-09-30 Thread Vidya Praveen
On Fri, Sep 27, 2013 at 04:19:45PM +0100, Vidya Praveen wrote: > On Fri, Sep 27, 2013 at 03:50:08PM +0100, Vidya Praveen wrote: > [...] > > > > I can't really insist on the single lane load.. something like: > > > > > > > > vc:V4SI[0] = c > > > > vt:V4SI = vec_duplicate:V4SI (vec_select:SI vc:V4SI

Re: [RFC] Vectorization of indexed elements

2013-09-27 Thread Vidya Praveen
On Fri, Sep 27, 2013 at 03:50:08PM +0100, Vidya Praveen wrote: [...] > > > I can't really insist on the single lane load.. something like: > > > > > > vc:V4SI[0] = c > > > vt:V4SI = vec_duplicate:V4SI (vec_select:SI vc:V4SI 0) > > > va:V4SI = vb:V4SI vt:V4SI > > > > > > Or is there any other way

Re: [RFC] Vectorization of indexed elements

2013-09-27 Thread Vidya Praveen
On Wed, Sep 25, 2013 at 10:24:56AM +0100, Richard Biener wrote: > On Tue, 24 Sep 2013, Vidya Praveen wrote: > > > On Mon, Sep 09, 2013 at 07:02:52PM +0100, Marc Glisse wrote: > > > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > > > > > Hello, > > > > > > > > This post details some thoughts on an

Re: [RFC] Vectorization of indexed elements

2013-09-25 Thread Richard Biener
On Tue, 24 Sep 2013, Vidya Praveen wrote: > On Mon, Sep 09, 2013 at 07:02:52PM +0100, Marc Glisse wrote: > > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > > > Hello, > > > > > > This post details some thoughts on an enhancement to the vectorizer that > > > could take advantage of the SIMD instru

Re: [RFC] Vectorization of indexed elements

2013-09-25 Thread Richard Biener
On Tue, 24 Sep 2013, Vidya Praveen wrote: > On Tue, Sep 10, 2013 at 09:25:32AM +0100, Richard Biener wrote: > > On Mon, 9 Sep 2013, Marc Glisse wrote: > > > > > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > > > > > Hello, > > > > > > > > This post details some thoughts on an enhancement to the

Re: [RFC] Vectorization of indexed elements

2013-09-24 Thread Vidya Praveen
On Mon, Sep 09, 2013 at 07:02:52PM +0100, Marc Glisse wrote: > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > Hello, > > > > This post details some thoughts on an enhancement to the vectorizer that > > could take advantage of the SIMD instructions that allows indexed element > > as an operand thus

Re: [RFC] Vectorization of indexed elements

2013-09-24 Thread Vidya Praveen
On Tue, Sep 10, 2013 at 09:25:32AM +0100, Richard Biener wrote: > On Mon, 9 Sep 2013, Marc Glisse wrote: > > > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > > > Hello, > > > > > > This post details some thoughts on an enhancement to the vectorizer that > > > could take advantage of the SIMD ins

Re: [RFC] Vectorization of indexed elements

2013-09-10 Thread Richard Biener
On Mon, 9 Sep 2013, Marc Glisse wrote: > On Mon, 9 Sep 2013, Vidya Praveen wrote: > > > Hello, > > > > This post details some thoughts on an enhancement to the vectorizer that > > could take advantage of the SIMD instructions that allows indexed element > > as an operand thus reducing the need f

Re: [RFC] Vectorization of indexed elements

2013-09-09 Thread Marc Glisse
On Mon, 9 Sep 2013, Vidya Praveen wrote: Hello, This post details some thoughts on an enhancement to the vectorizer that could take advantage of the SIMD instructions that allows indexed element as an operand thus reducing the need for duplication and possibly improve reuse of previously loaded

[RFC] Vectorization of indexed elements

2013-09-09 Thread Vidya Praveen
Hello, This post details some thoughts on an enhancement to the vectorizer that could take advantage of the SIMD instructions that allows indexed element as an operand thus reducing the need for duplication and possibly improve reuse of previously loaded data. Appreciate your opinion on this.