Hi, > > I think a better fix would be to make the nb_iterations_upper_bound > > semantics > > consistent with that of nb_iterations. Let me try to do it, hopefully this > > should > > be mostly mechanical, > > > > This patch changes the semantics of nb_iterations_upper_bound and > nb_iterations_estimate, to mean: the amount of latch executions. > > That change is countered at all use sites, except for > tree-ssa-loop-ivopts.c:may_eliminate_iv. > > Passed x86_64 bootstrapping and reg-testing. > > OK for trunk?
yes, Zdenek