Re: loop-ch improvements, part 5

2023-07-21 Thread Jan Hubicka via Gcc-patches
> > The patch requires bit of testsuite changes > > - I disabled ch in loop-unswitch-17.c since it tests unswitching of > >loop invariant conditional. > > - pr103079.c needs ch disabled to trigger vrp situation it tests for > >(otherwise we optimize stuff earlier and better) > > - copy-h

Re: loop-ch improvements, part 5

2023-07-21 Thread Richard Biener via Gcc-patches
On Fri, Jul 21, 2023 at 1:53 PM Jan Hubicka via Gcc-patches wrote: > > Hi, > currently loop-ch skips all do-while loops. But when loop is not do-while > in addition to original goal of turining it to do-while it can do additional > things: > 1) move out loop invariant computations > 2) duplicat