RFR: 8356647: C2: Excessively strict assert in PhaseIdealLoop::do_unroll [v4]
Marc Chevalier
mchevalier at openjdk.org
Mon May 26 07:00: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:
+how the assert is true
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25295/files
- new: https://git.openjdk.org/jdk/pull/25295/files/4da34fca..a5552ffd
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25295&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25295&range=02-03
Stats: 4 lines in 1 file changed: 2 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