Re: [PATCH] ree: Improvement of ree pass for rs6000 target.

2023-04-04 Thread Segher Boessenkool
On Tue, Apr 04, 2023 at 05:26:26PM +0200, Jakub Jelinek wrote: > On Tue, Apr 04, 2023 at 10:19:23AM -0500, Segher Boessenkool wrote: > > > > +/* Enable -free for zero extension and sign extension > > > > elimination.*/ > > > > +{ OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 }, > > > > > > I belie

Re: [PATCH] ree: Improvement of ree pass for rs6000 target.

2023-04-04 Thread Jakub Jelinek via Gcc-patches
On Tue, Apr 04, 2023 at 10:19:23AM -0500, Segher Boessenkool wrote: > Hi! > > On Tue, Apr 04, 2023 at 01:53:46PM +0200, Jakub Jelinek wrote: > > On Tue, Apr 04, 2023 at 05:02:35PM +0530, Ajit Agarwal via Gcc-patches > > wrote: > > > --- a/gcc/common/config/rs6000/rs6000-common.cc > > > +++ b/gcc/

Re: [PATCH] ree: Improvement of ree pass for rs6000 target.

2023-04-04 Thread Segher Boessenkool
Hi! On Tue, Apr 04, 2023 at 01:53:46PM +0200, Jakub Jelinek wrote: > On Tue, Apr 04, 2023 at 05:02:35PM +0530, Ajit Agarwal via Gcc-patches wrote: > > --- a/gcc/common/config/rs6000/rs6000-common.cc > > +++ b/gcc/common/config/rs6000/rs6000-common.cc > > @@ -30,6 +30,8 @@ > > /* Implement TARGET_

Re: [PATCH] ree: Improvement of ree pass for rs6000 target.

2023-04-04 Thread Jakub Jelinek via Gcc-patches
On Tue, Apr 04, 2023 at 05:02:35PM +0530, Ajit Agarwal via Gcc-patches wrote: > This patch eliminates unnecessary redundant extension within basic and across > basic blocks. For rs6000 target we see > redundant zero and sign extension and done to improve ree pass to eliminate > such redundant zer

[PATCH] ree: Improvement of ree pass for rs6000 target.

2023-04-04 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch eliminates unnecessary redundant extension within basic and across basic blocks. For rs6000 target we see redundant zero and sign extension and done to improve ree pass to eliminate such redundant zero and sign extension. Bootstrapped and regtested on powerpc64-linux-gnu.