Re: Modernize loop_finite_p

2012-10-31 Thread Richard Biener
On Wed, 31 Oct 2012, Jan Hubicka wrote: > > > - FOR_EACH_VEC_ELT (edge, exits, i, ex) > > > + if (loop->any_upper_bound) > > > { > > > - if (!just_once_each_iteration_p (loop, ex->src)) > > > - continue; > > > + if (dump_file && (dump_flags & TDF_DETAILS)) > > > + fprintf (dump_fi

Re: Modernize loop_finite_p

2012-10-31 Thread Jan Hubicka
> > - FOR_EACH_VEC_ELT (edge, exits, i, ex) > > + if (loop->any_upper_bound) > > { > > - if (!just_once_each_iteration_p (loop, ex->src)) > > - continue; > > + if (dump_file && (dump_flags & TDF_DETAILS)) > > + fprintf (dump_file, "Found loop %i to be finite: upper bound is >

Re: Modernize loop_finite_p

2012-10-31 Thread Richard Biener
On Wed, 31 Oct 2012, Jan Hubicka wrote: > Hi, > this patch changes finite_loop_p to use max_loop_iterations. Long time ago I > made > finite_loop_p as rip-off from the max_loop_iterations skipping parts that are > not > exactly related to the number of iteration estimates. It went out of date