Re: [RFC] middle-end: Extend CSE to understand vector extracts.

2021-08-22 Thread Jeff Law via Gcc-patches
On 1/4/2021 6:18 AM, Tamar Christina wrote: Hi All, I am trying to get CSE to re-use constants already inside a vector rather than re-materializing the constant again. Basically consider the following case: #include #include uint64_t test (uint64_t a, uint64x2_t b, uint64x2_t* rt) { u

Re: [RFC] middle-end: Extend CSE to understand vector extracts.

2021-01-04 Thread Jeff Law via Gcc-patches
>> Cc: gcc-patches@gcc.gnu.org; nd ; i...@airs.com; >>> l...@redhat.com >>> Subject: Re: [RFC] middle-end: Extend CSE to understand vector extracts. >>> >>> On Mon, 4 Jan 2021, Tamar Christina wrote: >>> >>>> Hi All, >>&

RE: [RFC] middle-end: Extend CSE to understand vector extracts.

2021-01-04 Thread Richard Biener
> > Subject: Re: [RFC] middle-end: Extend CSE to understand vector extracts. > > > > On Mon, 4 Jan 2021, Tamar Christina wrote: > > > > > Hi All, > > > > > > I am trying to get CSE to re-use constants already inside a vector > > &

RE: [RFC] middle-end: Extend CSE to understand vector extracts.

2021-01-04 Thread Tamar Christina via Gcc-patches
Hi Richi, > -Original Message- > From: Richard Biener > Sent: Monday, January 4, 2021 1:33 PM > To: Tamar Christina > Cc: gcc-patches@gcc.gnu.org; nd ; i...@airs.com; > l...@redhat.com > Subject: Re: [RFC] middle-end: Extend CSE to understand vector extracts. &g

Re: [RFC] middle-end: Extend CSE to understand vector extracts.

2021-01-04 Thread Richard Biener
On Mon, 4 Jan 2021, Tamar Christina wrote: > Hi All, > > I am trying to get CSE to re-use constants already inside a vector rather than > re-materializing the constant again. > > Basically consider the following case: > > #include > #include > > uint64_t > test (uint64_t a, uint64x2_t b, uin

[RFC] middle-end: Extend CSE to understand vector extracts.

2021-01-04 Thread Tamar Christina via Gcc-patches
Hi All, I am trying to get CSE to re-use constants already inside a vector rather than re-materializing the constant again. Basically consider the following case: #include #include uint64_t test (uint64_t a, uint64x2_t b, uint64x2_t* rt) { uint64_t arr[2] = { 0x0942430810234076UL, 0x0942430