This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PR87469] ICE in record_estimate, at tree-ssa-loop-niter.c


On Sun, Oct 28, 2018 at 1:11 AM Kugan Vivekanandarajah
<kugan.vivekanandarajah@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  <kuganv@linaro.org>
>
>     PR middle-end/87469
>     * g++.dg/pr87469.C: New test.
>
> gcc/ChangeLog:
>
> 2018-10-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
>
>     PR middle-end/87469
>     * tree-ssa-loop-niter.c (number_of_iterations_popcount): Fix niter
> max value.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]