Re: Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-07 Thread Prathamesh Kulkarni via Gcc
On Thu, 6 May 2021 at 18:51, Michael Matz wrote: > > Hello, > > On Thu, 6 May 2021, Prathamesh Kulkarni via Gcc wrote: > > > Well, I was thinking of this test-case: > > > > int f(int cond1, int cond2, int cond3, int x, int y) > > { > > void f1(); > > void f2(int); > > void f3(); > > > > if

Re: Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-06 Thread Prathamesh Kulkarni via Gcc
On Thu, 6 May 2021 at 17:01, Richard Biener wrote: > > On Thu, 6 May 2021, Prathamesh Kulkarni wrote: > > > On Thu, 6 May 2021 at 15:43, Richard Biener wrote: > > > > > > On Thu, 6 May 2021, Prathamesh Kulkarni wrote: > > > > > > > Hi Richard, > > > > I was just wondering if second (and higher) o

Re: Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-06 Thread Michael Matz
Hello, On Thu, 6 May 2021, Prathamesh Kulkarni via Gcc wrote: > Well, I was thinking of this test-case: > > int f(int cond1, int cond2, int cond3, int x, int y) > { > void f1(); > void f2(int); > void f3(); > > if (cond1) > f1 (); > else > { > if (cond2) > f2 (x

Re: Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-06 Thread Richard Biener
On Thu, 6 May 2021, Prathamesh Kulkarni wrote: > On Thu, 6 May 2021 at 15:43, Richard Biener wrote: > > > > On Thu, 6 May 2021, Prathamesh Kulkarni wrote: > > > > > Hi Richard, > > > I was just wondering if second (and higher) order hoistings may defeat > > > the "AVAIL_OUT in at least one succes

Re: Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-06 Thread Prathamesh Kulkarni via Gcc
On Thu, 6 May 2021 at 15:43, Richard Biener wrote: > > On Thu, 6 May 2021, Prathamesh Kulkarni wrote: > > > Hi Richard, > > I was just wondering if second (and higher) order hoistings may defeat > > the "AVAIL_OUT in at least one successor heuristic" ? > > > > For eg: > > bb2: > > if (cond1) goto

Re: Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-06 Thread Richard Biener
On Thu, 6 May 2021, Prathamesh Kulkarni wrote: > Hi Richard, > I was just wondering if second (and higher) order hoistings may defeat > the "AVAIL_OUT in at least one successor heuristic" ? > > For eg: > bb2: > if (cond1) goto bb3 else goto bb4; > > bb3: > if (cond2) goto bb5 else goto bb6; > >

Successive hoisting and AVAIL_OUT in at least one successor heuristic

2021-05-06 Thread Prathamesh Kulkarni via Gcc
Hi Richard, I was just wondering if second (and higher) order hoistings may defeat the "AVAIL_OUT in at least one successor heuristic" ? For eg: bb2: if (cond1) goto bb3 else goto bb4; bb3: if (cond2) goto bb5 else goto bb6; bb5: return x + y; bb6: return x + y; bb4: if (cond3) goto bb7 else g