On Sun, Oct 28, 2018 at 1:11 AM Kugan Vivekanandarajah
<kugan.vivekanandara...@linaro.org> wrote:
>
> Hi,
>
> In the testcase provided in the bug report, max value for niter
> estimation is off by one when it is INTEGER_CST. As a results it
> asserts at the place where it is checked for equality.
> Attached patch fixes this. Bootstrapped and regression tested on
> x86_64-linux-gnu with no new regression. Is this OK?

OK.

> Thanks,
> Kugan
>
> gcc/testsuite/ChangeLog:
>
> 2018-10-26  Kugan Vivekanandarajah  <kug...@linaro.org>
>
>     PR middle-end/87469
>     * g++.dg/pr87469.C: New test.
>
> gcc/ChangeLog:
>
> 2018-10-26  Kugan Vivekanandarajah  <kug...@linaro.org>
>
>     PR middle-end/87469
>     * tree-ssa-loop-niter.c (number_of_iterations_popcount): Fix niter
> max value.

Reply via email to