RFR: 8356647: C2: Excessively strict assert in PhaseIdealLoop::do_unroll [v5]

Marc Chevalier mchevalier at openjdk.org
Wed May 28 13:29:00 UTC 2025


On Tue, 27 May 2025 08:06:37 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 incrementally with two additional commits since the last revision:
> 
>  - +message in assert
>  - Move asserts around

Thanks you all for reviews and comments!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25295#issuecomment-2916344895


More information about the hotspot-compiler-dev mailing list