Re: loop-split improvements, part 1

2023-07-28 Thread Andrew Pinski via Gcc-patches
On Thu, Jul 27, 2023 at 11:38 PM Jan Hubicka via Gcc-patches wrote: > > Hi, > while looking on profile misupdate on hmmer I noticed that loop splitting > pass is not > able to handle the loop it has as an example it should apply on: > >One transformation of loops like: > >for (i = 0; i <

Re: loop-split improvements, part 1

2023-07-28 Thread Richard Biener via Gcc-patches
On Fri, Jul 28, 2023 at 8:38 AM Jan Hubicka via Gcc-patches wrote: > > Hi, > while looking on profile misupdate on hmmer I noticed that loop splitting > pass is not > able to handle the loop it has as an example it should apply on: > >One transformation of loops like: > >for (i = 0; i <

loop-split improvements, part 1

2023-07-28 Thread Jan Hubicka via Gcc-patches
Hi, while looking on profile misupdate on hmmer I noticed that loop splitting pass is not able to handle the loop it has as an example it should apply on: One transformation of loops like: for (i = 0; i < 100; i++) { if (i < 50) A; else B; }