Re: [PATCH] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-18 Thread Richard Biener via Gcc-patches
On Sun, May 16, 2021 at 11:06 PM apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > Instead of some of the more manual optimizations inside phi-opt, > it would be good idea to do a lot of the heavy lifting inside match > and simplify instead. In the process, this moves the three simple

Re: [PATCH] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-17 Thread Andrew Pinski via Gcc-patches
On Mon, May 17, 2021 at 2:18 PM Andrew Pinski wrote: > > On Mon, May 17, 2021 at 9:41 AM Bernd Edlinger > wrote: > > > > On 5/16/21 10:36 PM, apinski--- via Gcc-patches wrote: > > > From: Andrew Pinski > > > > > > Instead of some of the more manual optimizations inside phi-opt, > > > it would be

Re: [PATCH] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-17 Thread Andrew Pinski via Gcc-patches
On Mon, May 17, 2021 at 9:41 AM Bernd Edlinger wrote: > > On 5/16/21 10:36 PM, apinski--- via Gcc-patches wrote: > > From: Andrew Pinski > > > > Instead of some of the more manual optimizations inside phi-opt, > > it would be good idea to do a lot of the heavy lifting inside match > > and simplif

Re: [PATCH] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-17 Thread Bernd Edlinger
On 5/16/21 10:36 PM, apinski--- via Gcc-patches wrote: > From: Andrew Pinski > > Instead of some of the more manual optimizations inside phi-opt, > it would be good idea to do a lot of the heavy lifting inside match > and simplify instead. In the process, this moves the three simple > A?CST1:CST2

[PATCH] Add a couple of A?CST1:CST2 match and simplify optimizations

2021-05-16 Thread apinski--- via Gcc-patches
From: Andrew Pinski Instead of some of the more manual optimizations inside phi-opt, it would be good idea to do a lot of the heavy lifting inside match and simplify instead. In the process, this moves the three simple A?CST1:CST2 (where CST1 or CST2 is zero) simplifications. OK? Boostrapped and