RE: [PATCH 1/2] middle-end Teach CSE to be able to do vector extracts.

2021-11-01 Thread Tamar Christina via Gcc-patches
Mailing list got lost somewhere, Archiving OK. > -Original Message- > From: Richard Sandiford > Sent: Friday, October 29, 2021 4:52 PM > To: Tamar Christina > Cc: jeffreya...@gmail.com; rguent...@suse.de; nd > Subject: Re: [PATCH 1/2] middle-end Teach CSE to be

Re: [PATCH 1/2]middle-end Teach CSE to be able to do vector extracts.

2021-09-08 Thread Tamar Christina via Gcc-patches
Hi Jeff & Richard, > If you can turn that example into a test, even if it's just in the > aarch64 directory, that would be helpful The second patch 2/2 has various tests for this as the cost model had to be made more accurate for it to work. > > As mentioned in the 2/2 thread, I think we

Re: [PATCH 1/2]middle-end Teach CSE to be able to do vector extracts.

2021-09-03 Thread Richard Sandiford via Gcc-patches
Tamar Christina via Gcc-patches writes: > diff --git a/gcc/cse.c b/gcc/cse.c > index > 330c1e90ce05b8f95b58f24576ec93e10ec55d89..d76e01b6478e22e9dd5760b7c78cecb536d7daef > 100644 > --- a/gcc/cse.c > +++ b/gcc/cse.c > @@ -44,6 +44,7 @@ along with GCC; see the file COPYING3. If not see >

Re: [PATCH 1/2]middle-end Teach CSE to be able to do vector extracts.

2021-09-01 Thread Jeff Law via Gcc-patches
On 8/31/2021 7:29 AM, Tamar Christina wrote: Hi All, This patch gets 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) {

[PATCH 1/2]middle-end Teach CSE to be able to do vector extracts.

2021-08-31 Thread Tamar Christina via Gcc-patches
Hi All, This patch gets 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,