RFR: 8356647: C2: Excessively strict assert in PhaseIdealLoop::do_unroll [v3]
Marc Chevalier
mchevalier at openjdk.org
Fri May 23 08:09:36 UTC 2025
> 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 one additional commit since the last revision:
Comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25295/files
- new: https://git.openjdk.org/jdk/pull/25295/files/9c44f068..4da34fca
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25295&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25295&range=01-02
Stats: 13 lines in 2 files changed: 11 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/25295.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25295/head:pull/25295
PR: https://git.openjdk.org/jdk/pull/25295
More information about the hotspot-compiler-dev
mailing list