RFR: 8356647: C2: Excessively strict assert in PhaseIdealLoop::do_unroll [v2]
Christian Hagedorn
chagedorn at openjdk.org
Fri May 23 06:32:59 UTC 2025
On Thu, 22 May 2025 15:34:15 GMT, Marc Chevalier <mchevalier at openjdk.org> wrote:
>> This assert seems a bit too tight. See the JBS issue to check the math: the bound of `trip_count` should be `<= 2^31`, while the current bound is ` < (julong)max_juint/2` = floor((2^32-1)/2) = (2^32-2) / 2 = 2^31-1.
>
> Marc Chevalier has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>
> - A test
> - Merge branch 'master' into fix/do_unroll-assert
> - Relax the assert
Looks good to me, too! Thanks for spending more time on the reproducer and the interesting discussion offline!
-------------
Marked as reviewed by chagedorn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25295#pullrequestreview-2863341196
More information about the hotspot-compiler-dev
mailing list