[RFC] Return Value Propagation in IPA-CP

2024-08-21 Thread Dhruv Chawla via Gcc
* Table Of Contents * - Introduction - Motivating Test Cases - Proposed Solution - Other Options - Existing Solutions - Primary Optimizations To Be Improved - Front-End Attribute For Recording Return-Value Information - Future Work - References - Questions * Introduction * Return jump functions

Re: Changing control flow in an RTL pass

2024-08-21 Thread Richard Biener via Gcc
On Wed, Aug 21, 2024 at 1:46 PM Georg-Johann Lay wrote: > > Am 21.08.24 um 11:31 schrieb Richard Biener: > > On Wed, Aug 21, 2024 at 11:19 AM Georg-Johann Lay wrote: > >> > >> Hi, in an RTL optimization pass I would like to > >> perform a transformation like from old code: > >> > >> [bb 1] >

Re: Changing control flow in an RTL pass

2024-08-21 Thread Georg-Johann Lay
Am 21.08.24 um 11:31 schrieb Richard Biener: On Wed, Aug 21, 2024 at 11:19 AM Georg-Johann Lay wrote: Hi, in an RTL optimization pass I would like to perform a transformation like from old code: [bb 1] if (condA);; insn1 goto label_1; [bb 2] if (cond_B) ;; insn2

Re: Changing control flow in an RTL pass

2024-08-21 Thread Richard Biener via Gcc
On Wed, Aug 21, 2024 at 11:19 AM Georg-Johann Lay wrote: > > Hi, in an RTL optimization pass I would like to > perform a transformation like from old code: > >[bb 1] >if (condA);; insn1 > goto label_1; > >[bb 2] >if (cond_B) ;; insn2 > goto label_2; > > to new cod

Changing control flow in an RTL pass

2024-08-21 Thread Georg-Johann Lay
Hi, in an RTL optimization pass I would like to perform a transformation like from old code: [bb 1] if (condA);; insn1 goto label_1; [bb 2] if (cond_B) ;; insn2 goto label_2; to new code: [bb 1] if (cond1) ;; branch1 goto label_2; [bb 2] if (cond2) ;;