RFR: 8356647: C2: Excessively strict assert in PhaseIdealLoop::do_unroll
Christian Hagedorn
chagedorn at openjdk.org
Wed May 21 14:50:52 UTC 2025
On Mon, 19 May 2025 06:43:38 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.
Drive-by comment: Were you able to extract a regression test that does not require the stress peeling flag?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25295#issuecomment-2898241519
More information about the hotspot-compiler-dev
mailing list