Re: [PATCH v1] tree-ssa-sink: Improve code sinking pass.

2023-05-29 Thread Ajit Agarwal via Gcc-patches
Hello Richard: On 22/05/23 6:26 pm, Richard Biener wrote: > On Thu, May 18, 2023 at 9:14 AM Ajit Agarwal wrote: >> >> Hello All: >> >> This patch improves code sinking pass to sink statements before call to >> reduce >> register pressure. >> Review comments are incorporated. >> >> Bootstrapped a

Re: [PATCH v1] tree-ssa-sink: Improve code sinking pass.

2023-05-30 Thread Ajit Agarwal via Gcc-patches
Hello Richard: On 30/05/23 12:34 pm, Richard Biener wrote: > On Tue, May 30, 2023 at 7:06 AM Ajit Agarwal wrote: >> >> Hello Richard: >> >> On 22/05/23 6:26 pm, Richard Biener wrote: >>> On Thu, May 18, 2023 at 9:14 AM Ajit Agarwal wrote: Hello All: This patch improves code s

[PING] [PATCH v3 3/4] ree: Main functionality to Improve ree pass for rs6000 target

2023-05-30 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: Please review Jeff. Thanks & Regards Ajit On 12/05/23 4:48 pm, Ajit Agarwal via Gcc-patches wrote: > Hello Jeff: > > > On 29/04/23 3:40 am, Jeff Law wrote: >> >> >> On 4/20/23 15:03, Ajit Agarwal wrote: >> >>> >>> Currently

[PATCH v4] tree-sea-sink: Improve code sinking pass

2023-05-30 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

[PATCH v4] tree-ssa-sink: Improve code sinking pass

2023-05-31 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-05-31 Thread Ajit Agarwal via Gcc-patches
Hello All: This new version of patch 4 use improve ree pass for rs6000 target using defined ABI interfaces. Bootstrapped and regtested on power64-linux-gnu. Review comments incorporated. Thanks & Regards Ajit Improve ree pass for rs6000 target using defined abi interfaces For rs6000 target we

[PATCH v5] tree-ssa-sink: Improve code sinking pass

2023-06-01 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

Re: [PATCH v5] tree-ssa-sink: Improve code sinking pass

2023-06-01 Thread Ajit Agarwal via Gcc-patches
On 01/06/23 2:06 pm, Bernhard Reutner-Fischer wrote: > On 1 June 2023 09:20:08 CEST, Ajit Agarwal wrote: >> Hello All: >> >> This patch improves code sinking pass to sink statements before call to >> reduce >> register pressure. >> Review comments are incorporated. > > Hi Ajit! > > I had two

[PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target.

2023-06-07 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch provide functionality to improve ree pass for rs6000 target. Eliminated sign_extend/zero_extend/AND with varying constants. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target For rs6000 target we see redundant

[PING] [PATCH v2] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-06-12 Thread Ajit Agarwal via Gcc-patches
Hello Segher: Please review and let me know your feedback to submit in trunk. Thanks & Regards Ajit On 25/02/23 3:20 pm, Ajit Agarwal via Gcc-patches wrote: > Hello All: > > Here is the patch that uses xxlor instead of fmr where possible. > Performance results shows that

[committed] [PATCH v1] rs6000: Update powerpc test fold-vec-extract-int.p8.c

2023-06-13 Thread Ajit Agarwal via Gcc-patches
commit 17714c08e9013b51cf8d04ac39f844d355c923f2 (HEAD -> master, origin/master, origin/HEAD) Author: “Ajit Kumar Agarwal” Date: Fri May 19 02:30:44 2023 -0500 testsuite: Update powerpc test fold-vec-extract-int.p8.c Update powerpc tests with extra zero_extend removal with default

PING^1 [PATCH v7] tree-ssa-sink: Improve code sinking pass

2023-07-18 Thread Ajit Agarwal via Gcc-patches
Ping! please review. Thanks & Regards Ajit This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +

[PING^2] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-07-18 Thread Ajit Agarwal via Gcc-patches
Ping^2. Please review. Thanks & Regards Ajit This new version of patch 4 use improve ree pass for rs6000 target using defined ABI interfaces. Bootstrapped and regtested on power64-linux-gnu. Review comments incorporated. Thanks & Regards Ajit Improve ree pass for rs6000 target using defin

[PING^2] [PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target.

2023-07-18 Thread Ajit Agarwal via Gcc-patches
Ping^2. Please review. Thanks & Regards Ajit This patch provide functionality to improve ree pass for rs6000 target. Eliminated sign_extend/zero_extend/AND with varying constants. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target

Re: PING^1 [PATCH v7] tree-ssa-sink: Improve code sinking pass

2023-07-18 Thread Ajit Agarwal via Gcc-patches
On 18/07/23 4:38 pm, Prathamesh Kulkarni wrote: > On Tue, 18 Jul 2023 at 13:26, Ajit Agarwal via Gcc-patches > wrote: >> >> >> Ping! >> >> please review. >> >> Thanks & Regards >> Ajit >> >> >> This patch improve

[PATCH v8] tree-ssa-sink: Improve code sinking pass.

2023-07-18 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

[PING^1] [PATCH v8] tree-ssa-sink: Improve code sinking pass.

2023-08-01 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PATCH v8] tree-ssa-sink: Improve code sinking pass. Date: Tue, 18 Jul 2023 19:03:37 +0530 From: Ajit Agarwal To: gcc-patches CC: Richard Biener , Jeff Law , Segher Boessenkool , Peter Bergner Hello All: This patch improves code sinking p

[PING^3] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-08-01 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PING^2] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces. Date: Tue, 18 Jul 2023 13:28:08 +0530 From: Ajit Agarwal To: gcc-patches CC: Jeff Law , Richard Biener , Segher Boessenkool , Peter Bergner Ping^

PING^3] [PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target.

2023-08-01 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PING^2] [PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target. Date: Tue, 18 Jul 2023 13:31:27 +0530 From: Ajit Agarwal To: gcc-patches CC: Jeff Law , Richard Biener , Segher Boessenkool , Peter Bergner Ping^2. Please rev

[PING^2] [PATCH v8] tree-ssa-sink: Improve code sinking pass.

2023-08-20 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PING^1] [PATCH v8] tree-ssa-sink: Improve code sinking pass. Date: Tue, 1 Aug 2023 13:47:10 +0530 From: Ajit Agarwal To: gcc-patches CC: Richard Biener , Jeff Law , Peter Bergner , Segher Boessenkool , rashmi.srid...@ibm.com Ping! --

[PING^4] [PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target.

2023-08-20 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: PING^3] [PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target. Date: Tue, 1 Aug 2023 13:50:21 +0530 From: Ajit Agarwal To: gcc-patches , Jeff Law , Richard Biener , Peter Bergner , Segher Boessenkool , rashmi.srid...@ibm.com

[PING^4] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-08-20 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PING^3] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces. Date: Tue, 1 Aug 2023 13:48:58 +0530 From: Ajit Agarwal To: gcc-patches , Jeff Law , Richard Biener , Peter Bergner , Segher Boessenkool , rashmi.s

Re: [PATCH v5] tree-ssa-sink: Improve code sinking pass

2023-06-23 Thread Ajit Agarwal via Gcc-patches
On 23/06/23 7:44 am, Peter Bergner wrote: > On 6/1/23 11:54 PM, Ajit Agarwal via Gcc-patches wrote: >> >> >> On 01/06/23 2:06 pm, Bernhard Reutner-Fischer wrote: >>> On 1 June 2023 09:20:08 CEST, Ajit Agarwal wrote: >>>> Hello All: >>>&

[PATCH v6] tree-ssa-sink: Improve code sinking pass

2023-06-23 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

[PING] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-06-26 Thread Ajit Agarwal via Gcc-patches
All: Ok for trunk. Please review. Thanks & Regards Ajit On 01/06/23 10:53 am, Ajit Agarwal via Gcc-patches wrote: > Hello All: > > This new version of patch 4 use improve ree pass for rs6000 target using > defined ABI interfaces. > Bootstrapped and regtested on power64-lin

[PING] [PATCH 3/4] ree: Improve functionality of ree pass for rs6000 target.

2023-06-26 Thread Ajit Agarwal via Gcc-patches
All: Ok for trunk. Please review. Thanks & Regards Ajit On 07/06/23 3:55 pm, Ajit Agarwal via Gcc-patches wrote: > Hello All: > > This patch provide functionality to improve ree pass for rs6000 target. > Eliminated sign_extend/zero_extend/AND with varying constants. >

Re: PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-06-26 Thread Ajit Agarwal via Gcc-patches
All: Ok for trunk. Please review. Thanks & Regards Ajit On 01/06/23 10:53 am, Ajit Agarwal via Gcc-patches wrote: > Hello All: > > This new version of patch 4 use improve ree pass for rs6000 target using > defined ABI interfaces. > Bootstrapped and regtested on power64-lin

[PING] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-06-26 Thread Ajit Agarwal via Gcc-patches
All: Ok for trunk. Please review. Thanks & Regards Ajit On 26/06/23 6:12 pm, Ajit Agarwal via Gcc-patches wrote: > All: > > Ok for trunk. Please review. > > Thanks & Regards > Ajit > > On 01/06/23 10:53 am, Ajit Agarwal via Gcc-patches wrote: >> Hello

[PATCH v7] tree-ssa-sink: Improve code sinking pass

2023-06-27 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

[PATCH] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-17 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch replaces fmr instruction (6 cycles) with xxlor instruction ( 2 cycles) Bootstrapped and regtested on powerpc64-linux-gnu. copyright assignment form is still in the process of being sent. Thanks & Regards Ajit rs6000: fmr gets used instead of faster xxlor

Re: [PATCH] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-21 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch replaces fmr instruction 6 cycles with 2 cycles xxlor instruction for p7 and p8 architecture. I have implemented with switch and cases otherwise it is difficult to accommodate xxlor with p7 and p8 and fmr for other architectures. Bootstrapped and regtested. Thanks & Regar

Re: [PATCH] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-21 Thread Ajit Agarwal via Gcc-patches
Hello Segher: On 21/02/23 4:34 pm, Segher Boessenkool wrote: > Hi! > > On Tue, Feb 21, 2023 at 02:18:25PM +0530, Ajit Agarwal wrote: >> This patch replaces fmr instruction 6 cycles with 2 cycles xxlor instruction >> for p7 and p8 architecture. >> >> I have implemented with switch and cases other

Re: [PATCH] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-22 Thread Ajit Agarwal via Gcc-patches
On 21/02/23 7:39 pm, Segher Boessenkool wrote: > On Tue, Feb 21, 2023 at 06:00:52PM +0530, Ajit Agarwal wrote: >> On 21/02/23 4:34 pm, Segher Boessenkool wrote: >>> Please domn't use a switch, it isn't needed. Instead use the "isa" >>> attribute (with p7v here), and put the preferred alternativ

Re: [PATCH] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-24 Thread Ajit Agarwal via Gcc-patches
p8v,p8v,p10") +"*, *, p7p8,p9v,p9v, + p7v, p7v,*, *, *, + *, *, *, *, *, + *, p8v,p8v, *, *, + p10") (set_attr "prefixed" "*, *, *, *, *, *, *, *, *, *, *,

Re: [PATCH] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-24 Thread Ajit Agarwal via Gcc-patches
Hello Segher: On 24/02/23 8:41 pm, Segher Boessenkool wrote: > Hi! > > For future patches: please don't send patches as replies to existing > threads. Just start a new thread for a new patch (series). You can > mark it as [PATCH v2] in the subject, if you want. > > On Fri, Feb 24, 2023 at 01:4

[PATCH v2] rs6000: fmr gets used instead of faster xxlor [PR93571]

2023-02-25 Thread Ajit Agarwal via Gcc-patches
Hello All: Here is the patch that uses xxlor instead of fmr where possible. Performance results shows that fmr is better in power9 and power10 architectures whereas xxlor is better in power7 and power 8 architectures. fmr is the only option before p7. Bootstrapped and regtested on powerpc64-linu

[PATCH] rs6000: Inline lrint and lrintf

2023-02-27 Thread Ajit Agarwal via Gcc-patches
Hello All: Here is the patch for Inline lrint and lrintf. Currently glibc don't use __builtin_lrint as they inline lrint with fctid/fctiw instruction. With the below changes such inlines are not required and lrint builtin can be used. Bootstrapped and regtested on powerpc64-linux-gnu. rs

[PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-15 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch eliminates unnecessary zero extension instruction from power generated assembly. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: suboptimal code for returning bool value on target ppc. New pass to eliminate unnecessary zer

Re: [PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-16 Thread Ajit Agarwal via Gcc-patches
Hello Richard: On 16/03/23 1:10 pm, Richard Biener wrote: > On Thu, Mar 16, 2023 at 6:21 AM Ajit Agarwal via Gcc-patches > wrote: >> >> Hello All: >> >> >> This patch eliminates unnecessary zero extension instruction from power >> generated assembly.

Re: [PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-16 Thread Ajit Agarwal via Gcc-patches
On 16/03/23 1:44 pm, Richard Biener wrote: > On Thu, Mar 16, 2023 at 9:11 AM Ajit Agarwal wrote: >> >> Hello Richard: >> >> On 16/03/23 1:10 pm, Richard Biener wrote: >>> On Thu, Mar 16, 2023 at 6:21 AM Ajit Agarwal via Gcc-patches >>> wrote: &

Re: [PATCH v3 3/4] ree: Main functionality to Improve ree pass for rs6000 target

2023-05-12 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: On 29/04/23 3:40 am, Jeff Law wrote: > > > On 4/20/23 15:03, Ajit Agarwal wrote: > >> >> Currently I support AND with const1_rtx. This is what is equivalent to zero >> extension instruction in power instruction set. When you specify many other >> constants and Could you please sp

[PATCH v5 1/4] rs6000: Enable REE pass by default

2023-05-15 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch enable ree pass as a default pass for rs6000 target. Bootstrapped and regtested for powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: Enable REE pass by default Add ree pass as a default pass for rs6000 target for O2 and above. 2023-05-16

Re: [PATCH v4 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-05-16 Thread Ajit Agarwal via Gcc-patches
On 29/04/23 5:03 am, Jeff Law wrote: > > > On 4/28/23 16:42, Hans-Peter Nilsson wrote: >> On Sat, 22 Apr 2023, Ajit Agarwal via Gcc-patches wrote: >> >>> Hello All: >>> >>> This new version of patch 4 use improve ree pass for rs6000 target usi

[committed] rs6000: Enable REE pass by default

2023-05-16 Thread Ajit Agarwal via Gcc-patches
rs6000: Enable REE pass by default Add ree pass as a default pass for rs6000 target for O2 and above. 2023-05-16 Ajit Kumar Agarwal gcc/ChangeLog: * common/config/rs6000/rs6000-common.cc: Add REE pass as a default rs6000 target pass for O2 and above. * doc/invoke.texi

[PATCH v1] tree-ssa-sink: Improve code sinking pass.

2023-05-18 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit tree-ssa-sink: Improve code sinking pass. Code Sinking sinks the blocks after

[PATCH] rs6000: Update powerpc test fold-vec-extract-int.p8.c

2023-05-18 Thread Ajit Agarwal via Gcc-patches
Hello All: Update powerpc tests with extra zero_extend removal with default ree pass. Bootstrapped and Regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: Update powerpc test fold-vec-extract-int.p8.c Update powerpc tests with extra zero_extend removal with default ree pass. 202

[PATCH v1] rs6000: Update powerpc test fold-vec-extract-int.p8.c

2023-05-19 Thread Ajit Agarwal via Gcc-patches
Hello All: Update powerpc tests for both le and be endian with extra removal of zero extension and sign extension. with default ree pass for rs6000 target. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: Update powerpc test fold-vec-extract-int.p8.c Update pow

[PATCH v2] tree-ssa-sink: Improve code sinking pass

2023-05-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

[PATCH v3] tree-ssa-sink: Improve code sinking pass

2023-05-24 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink statements before call to reduce register pressure. Review comments are incorporated. For example : void bar(); int j; void foo(int a, int b, int c, int d, int e, int f) { int l; l = a + b + c + d +e + f; if (a != 5) { bar(

[PATCH] rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index

2023-08-31 Thread Ajit Agarwal via Gcc-patches
This patch removes zero extension from vctzlsbb as it already zero extends. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index For rs6000 target we dont need zero_extend after vctzlsbb as vctzlsbb al

[PATCH] rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index

2023-08-31 Thread Ajit Agarwal via Gcc-patches
This patch removes zero extension from vctzlsbb as it already zero extends. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index For rs6000 target we dont need zero_extend after vctzlsbb as vctzlsbb alre

[PATCH 3/4] Improve functionality of ree pass.

2023-09-04 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: This patch eliminates redundant zero and sign extension with ree pass for rs6000 target. Bootstrapped and regtested for powerpc64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass For rs6000 target we see redundant zero and sign extension and ree pass s improved to eliminat

[PING ^0] [PATCH] rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index

2023-09-12 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PATCH] rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index Date: Thu, 31 Aug 2023 16:14:46 +0530 From: Ajit Agarwal via Gcc-patches Reply-To: Ajit Agarwal To: gcc-patches CC: Peter Bergner , Segher Boessenkool This

[PING ^0][PATCH 3/4] Improve functionality of ree pass.

2023-09-12 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PATCH 3/4] Improve functionality of ree pass. Date: Mon, 4 Sep 2023 13:27:42 +0530 From: Ajit Agarwal via Gcc-patches Reply-To: Ajit Agarwal To: Jeff Law , gcc-patches CC: Peter Bergner , Segher Boessenkool Hello Jeff: This patch

[PING^5] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-09-12 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PING^4] PATCH v5 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces. Date: Mon, 21 Aug 2023 12:16:44 +0530 From: Ajit Agarwal To: gcc-patches CC: Jeff Law , Richard Biener , Segher Boessenkool , Peter Bergner , rashm

[PING^3] [PATCH v8] tree-ssa-sink: Improve code sinking pass.

2023-09-12 Thread Ajit Agarwal via Gcc-patches
Ping! Forwarded Message Subject: [PING^2] [PATCH v8] tree-ssa-sink: Improve code sinking pass. Date: Mon, 21 Aug 2023 12:14:03 +0530 From: Ajit Agarwal To: gcc-patches CC: Richard Biener , Jeff Law , Segher Boessenkool , Peter Bergner , rashmi.srid...@ibm.com Ping! -

[PATCH v1] rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index

2023-09-12 Thread Ajit Agarwal via Gcc-patches
This patch removes zero extension from vctzlsbb as it already zero extends. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: unnecessary clear after vctzlsbb in vec_first_match_or_eos_index For rs6000 target we dont need zero_extend after vctzlsbb as vctzlsbb alre

PATCH v6 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-09-17 Thread Ajit Agarwal via Gcc-patches
This new version of patch 6 use improve ree pass for rs6000 target using defined ABI interfaces. Bootstrapped and regtested on power64-linux-gnu. Review comments incorporated. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target using defined abi interfaces For rs6000 target we see r

[PATCH v3 1/4] ree: Default ree pass for O2 and above for rs6000 target.

2023-04-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This is the patch-1 for improving ree pass for rs6000 target. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target. Add ree pass as a default pass for rs6000 target. 2023-04-19 Ajit Kumar Agarwal

[PATCH v3 2/4] ree : Code movement to avoid adding prototype to improve ree pass for rs6000 target.

2023-04-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This is the patch-2 to improve ree pass for rs6000 target. Bootstrapped and regtested on powerpc64-gnu-linux. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target. For rs6000 target we see redundant zero and sign extension and done to improve ree pass

[PATCH v3 3/4] ree: Main functionality to Improve ree pass for rs6000 target

2023-04-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This is patch-3 to improve ree pass for rs6000 target. Main functionality routines to imprve ree pass. Bootstrapped and regtested on powerpc64-gnu-linux. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target. For rs6000 target we see redundant zero and sign

[PATCH v3 4/4] ree: Using ABI interfaces to improve ree pass for rs6000 target.

2023-04-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This is patch-4 to improve ree pass for rs6000 target. Use ABI interfaces support. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target. For rs6000 target we see redundant zero and sign extension and

Re: [PATCH v3 3/4] ree: Main functionality to Improve ree pass for rs6000 target

2023-04-20 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: On 20/04/23 3:23 am, Jeff Law wrote: > > > On 4/19/23 12:00, Ajit Agarwal wrote: >> Hello All: >> >> This is patch-3 to improve ree pass for rs6000 target. >> Main functionality routines to imprve ree pass. >> >> Bootstrapped and regtested on powerpc64-gnu-linux. >> >> Thanks & Regar

Re: [PATCH v3 3/4] ree: Main functionality to Improve ree pass for rs6000 target

2023-04-20 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: On 21/04/23 2:33 am, Ajit Agarwal via Gcc-patches wrote: > Hello Jeff: > > On 20/04/23 3:23 am, Jeff Law wrote: >> >> >> On 4/19/23 12:00, Ajit Agarwal wrote: >>> Hello All: >>> >>> This is patch-3 to improve ree pass for rs6000

Re: [PATCH v3 3/4] ree: Main functionality to Improve ree pass for rs6000 target

2023-04-20 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: On 21/04/23 2:33 am, Ajit Agarwal wrote: > Hello Jeff: > > On 20/04/23 3:23 am, Jeff Law wrote: >> >> >> On 4/19/23 12:00, Ajit Agarwal wrote: >>> Hello All: >>> >>> This is patch-3 to improve ree pass for rs6000 target. >>> Main functionality routines to imprve ree pass. >>> >>> Boot

[PATCH v4 1/4] rs6000: Enable REE pass by default

2023-04-21 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch enable REE pass by default at O2 and above. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: Enable REE pass by default Add ree pass as a default pass for rs6000 target for O2 and above. 2023-04-21 Ajit Kuma

[PATCH v4 3/4] ree: Main functionality to improve ree pass for rs6000 target.

2023-04-21 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch is the new version of patch-3 to improve ree pass for rs6000 target. Bootstrapped and regtested on power64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target For rs6000 target we see redundant zero and sign extension and done t

[PATCH v4 4/4] ree: Improve ree pass for rs6000 target using defined ABI interfaces.

2023-04-22 Thread Ajit Agarwal via Gcc-patches
Hello All: This new version of patch 4 use improve ree pass for rs6000 target using defined ABI interfaces. Bootstrapped and regtested on power64-linux-gnu. Thanks & Regards Ajit ree: Improve ree pass for rs6000 target using defined abi interfaces For rs6000 target we see redu

Re: [PATCH v3 1/4] ree: Default ree pass for O2 and above for rs6000 target.

2023-04-22 Thread Ajit Agarwal via Gcc-patches
Hello Segher: On 20/04/23 1:30 am, Segher Boessenkool wrote: > Hi! > > The subject should be something like > > rs6000: Enable REE pass by default > > (and no period at the end). > > On Wed, Apr 19, 2023 at 11:23:07PM +0530, Ajit Agarwal wrote: >> This is the patch-1 for improving ree pass for

Re: [PATCH v4 1/4] rs6000: Enable REE pass by default

2023-04-22 Thread Ajit Agarwal via Gcc-patches
Hello Segher: On 22/04/23 6:56 pm, Segher Boessenkool wrote: > Hi! > > Please look at > > and reply to that message, with answers to the questions? And make sure > you are listed in MAINTAINERS before anything e

Re: [PATCH v3 4/4] ree: Using ABI interfaces to improve ree pass for rs6000 target.

2023-04-22 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: On 20/04/23 3:29 am, Jeff Law wrote: > > > On 4/19/23 12:03, Ajit Agarwal wrote: >> Hello All: >> >> This is patch-4 to improve ree pass for rs6000 target. >> Use ABI interfaces support. >> >> Bootstrapped and regtested on powerpc64-linux-gnu. >> >> Thanks & Regards >> Ajit >> >>    

Re: [PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-16 Thread Ajit Agarwal via Gcc-patches
Hello Richard: >>>> >>>> On 16/03/23 1:10 pm, Richard Biener wrote: >>>>> On Thu, Mar 16, 2023 at 6:21 AM Ajit Agarwal via Gcc-patches >>>>> wrote: >>>>>> >>>>>> Hello All: >>>>>> &g

Re: [PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-16 Thread Ajit Agarwal via Gcc-patches
t;>>> >>>> >>>> On 16/03/23 1:44 pm, Richard Biener wrote: >>>>> On Thu, Mar 16, 2023 at 9:11 AM Ajit Agarwal >>>>> wrote: >>>>>> >>>>>> Hello Richard: >>>>>> >>>>>> On

Re: [PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-16 Thread Ajit Agarwal via Gcc-patches
gt;> On 16/03/23 1:44 pm, Richard Biener wrote: >>>>>>> On Thu, Mar 16, 2023 at 9:11 AM Ajit Agarwal >>>>>>> wrote: >>>>>>>> >>>>>>>> Hello Richard: >>>>>>>> >>>>&

Re: [PATCH] rs6000: suboptimal code for returning bool value on target ppc

2023-03-17 Thread Ajit Agarwal via Gcc-patches
Hello Jeff: On 16/03/23 8:18 pm, Jeff Law wrote: > > > On 3/16/23 04:11, Ajit Agarwal via Gcc-patches wrote: >> >> Hello Richard: >> >> On 16/03/23 3:22 pm, Richard Biener wrote: >>> On Thu, Mar 16, 2023 at 9:19 AM Ajit Agarwal wrote: >>>&

[PATCH v2] rs6000: suboptimal code for returning bool value on target ppc

2023-03-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch eliminates unncessary zero extension with ree pass. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: suboptimal code for returning bool value on target ppc. Eliminate unnecessary redundantzero extension. 202

[PATCH testsuite] rs6000: suboptimal code for returning bool value on target ppc.

2023-03-19 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch add new test to check unnecessary zero extension removal. Regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rs6000: suboptimal code for returning bool value on target ppc. Tests to check unnecessary redundant zero extension removal.

[PATCH] rtl-optimization: ppc backend generates unnecessary signed extension.

2023-03-23 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch removed unnecessary signed extension elimination in ree pass. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit rtl-optimization: ppc backend generates unnecessary signed extension. Eliminate unnecessary redundant signed extension.

Re: [PATCH] rtl-optimization: ppc backend generates unnecessary signed extension.

2023-03-23 Thread Ajit Agarwal via Gcc-patches
Hello Peter: On 23/03/23 6:08 pm, Peter Bergner wrote: > On 3/23/23 5:38 AM, Ajit Agarwal wrote: >> This patch removed unnecessary signed extension elimination in ree pass. >> Bootstrapped and regtested on powerpc64-linux-gnu. >> >> >> Thanks & Regards >> Ajit >> >> rtl-optimization: ppc back

Re: [PATCH] rtl-optimization: ppc backend generates unnecessary signed extension.

2023-03-23 Thread Ajit Agarwal via Gcc-patches
Hello Peter: On 23/03/23 6:08 pm, Peter Bergner wrote: > On 3/23/23 5:38 AM, Ajit Agarwal wrote: >> This patch removed unnecessary signed extension elimination in ree pass. >> Bootstrapped and regtested on powerpc64-linux-gnu. >> >> >> Thanks & Regards >> Ajit >> >> rtl-optimization: ppc back

Re: [PATCH] rtl-optimization: ppc backend generates unnecessary signed extension.

2023-03-23 Thread Ajit Agarwal via Gcc-patches
On 23/03/23 7:17 pm, Jeff Law wrote: > > > On 3/23/23 04:38, Ajit Agarwal wrote: >> >> Hello All: >> >> This patch removed unnecessary signed extension elimination in ree pass. >> Bootstrapped and regtested on powerpc64-linux-gnu. >> >> >> Thanks & Regards >> Ajit >> >> rtl-optimization: p

[PATCH v2] rtl-optimization: ppc backend generates unnecessary extension.

2023-03-28 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch makes REE pass as a default pass in rs6000 target. And add necessary subroutines to eliminate extensions across basic blocks. Bootstrapped and regtested on powerpc64-linu-gnu. Thanks & Regards Ajit rtl-optimization: ppc backend generates unnecessary extens

Re: [PATCH v2] rtl-optimization: ppc backend generates unnecessary extension.

2023-03-30 Thread Ajit Agarwal via Gcc-patches
T_MODIFIED_NONE) + modified->kind = (cand->code == ZERO_EXTEND ? EXT_MODIFIED_ZEXT + : EXT_MODIFIED_SEXT); + +modified->do_not_reextend = 1; + } + return true; +

[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.

[PATCH v2] ree: Improve ree pass for rs6000 target.

2023-04-06 Thread Ajit Agarwal via Gcc-patches
Hello All: Eliminate 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. Thanks & Re

PATCH] tree-ssa-sink: Add heuristics for code sinking

2023-04-14 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch add heuristics for code sinking opportunities. Bootstrapped and regtested for powerpc64-linux-gnu. Thanks & Regards Ajit tree-ssa-sink: Add heuristics for code sinking. Add following code sinking heuristics: 1. from code block dominates the call.

Re: PATCH] tree-ssa-sink: Add heuristics for code sinking

2023-04-14 Thread Ajit Agarwal via Gcc-patches
Hello Richard: On 14/04/23 2:29 pm, Richard Biener wrote: > On Fri, Apr 14, 2023 at 10:42 AM Ajit Agarwal via Gcc-patches > wrote: >> >> Hello All: >> >> This patch add heuristics for code sinking opportunities. >> Bootstrapped and regtested for powerpc

[PATCH] tree-ssa-sink: Improve code sinking pass.

2023-04-16 Thread Ajit Agarwal via Gcc-patches
Hello All: This patch improves code sinking pass to sink the blocks before calls in the use blocks or immediate dominator blocks that reduces register pressure. Bootstrapped and regtested on powerpc64-linux-gnu. Thanks & Regards Ajit tree-ssa-sink: Improve code sinking pass. Co