Loop-split improvements, part 3

2023-07-28 Thread Jan Hubicka via Gcc-patches
Hi, This patch extends tree-ssa-loop-split to understand test of the form if (i==0) and if (i!=0) which triggers only during the first iteration. Naturally we should also be able to trigger last iteration or split into 3 cases if the test indeed can fire in the middle of the loop. Last iteratio

Re: Loop-split improvements, part 3

2023-07-28 Thread Richard Biener via Gcc-patches
On Fri, Jul 28, 2023 at 2:57 PM Jan Hubicka via Gcc-patches wrote: > > Hi, > This patch extends tree-ssa-loop-split to understand test of the form > if (i==0) > and > if (i!=0) > which triggers only during the first iteration. Naturally we should > also be able to trigger last iteration or spli

Re: Loop-split improvements, part 3

2023-07-28 Thread Jan Hubicka via Gcc-patches
> On Fri, Jul 28, 2023 at 2:57 PM Jan Hubicka via Gcc-patches > wrote: > > > > Hi, > > This patch extends tree-ssa-loop-split to understand test of the form > > if (i==0) > > and > > if (i!=0) > > which triggers only during the first iteration. Naturally we should > > also be able to trigger la