Re: Loop-split improvements, part 2

2023-07-28 Thread Jan Hubicka via Gcc-patches
> On Fri, Jul 28, 2023 at 9:58 AM Jan Hubicka via Gcc-patches > wrote: > > > > Hi, > > this patch fixes profile update in the first case of loop splitting. > > The pass still gives up on very basic testcases: > > > > __attribute__ ((noinline,noipa)) > > void test1 (int n) > > { > > if (n <= 0

Re: Loop-split improvements, part 2

2023-07-28 Thread Richard Biener via Gcc-patches
On Fri, Jul 28, 2023 at 9:58 AM Jan Hubicka via Gcc-patches wrote: > > Hi, > this patch fixes profile update in the first case of loop splitting. > The pass still gives up on very basic testcases: > > __attribute__ ((noinline,noipa)) > void test1 (int n) > { > if (n <= 0 || n > 10) >

Loop-split improvements, part 2

2023-07-28 Thread Jan Hubicka via Gcc-patches
Hi, this patch fixes profile update in the first case of loop splitting. The pass still gives up on very basic testcases: __attribute__ ((noinline,noipa)) void test1 (int n) { if (n <= 0 || n > 10) return; for (int i = 0; i <= n; i++) { if (i < n) do_something ();