On Wed, Jun 27, 2018 at 7:01 AM Kugan Vivekanandarajah <kugan.vivekanandara...@linaro.org> wrote: > > Hi Richard, > > Thanks for the review. > > On 25 June 2018 at 20:02, Richard Biener <richard.guent...@gmail.com> wrote: > > On Fri, Jun 22, 2018 at 11:14 AM Kugan Vivekanandarajah > > <kugan.vivekanandara...@linaro.org> wrote: > >> > >> gcc/ChangeLog: > > > > The canonical way is calling simplify_using_initial_conditions on the > > may_be_zero condition. > > > > Richard. > > > >> 2018-06-22 Kugan Vivekanandarajah <kug...@linaro.org> > >> > >> * tree-ssa-loop-niter.c (number_of_iterations_popcount): If popcount > >> argument is checked for zero before entering loop, avoid checking > >> again. > Do you like the attached patch which does this.
Yes. OK if bootstrapped/tested. Richard. > Thanks, > Kugan