Re: finite_loop_p tweak

2023-07-21 Thread Richard Biener via Gcc-patches
On Fri, Jul 21, 2023 at 1:45 PM Jan Hubicka via Gcc-patches wrote: > > Hi, > we have finite_p flag in loop structure. finite_loop_p already know to > use it, but we also may set the flag when we prove loop to be finite by > SCEV analysis to avoid duplicated work. > > Bootstrapped/regtested

finite_loop_p tweak

2023-07-21 Thread Jan Hubicka via Gcc-patches
Hi, we have finite_p flag in loop structure. finite_loop_p already know to use it, but we also may set the flag when we prove loop to be finite by SCEV analysis to avoid duplicated work. Bootstrapped/regtested x86_64-linux, OK? gcc/ChangeLog: * tree-ssa-loop-niter.cc (finite_loop_p):