RFR: 8365926: RISC-V: Performance regression in renaissance (chi-square) [v4]
Robbin Ehn
rehn at openjdk.org
Wed Sep 3 06:54:29 UTC 2025
> Hey, please consider!
>
> A bunch of info in JBS entry, please read that also.
>
> I narrowed this issue down to the old jal optimization, making direct calls when in reach.
> This patch restores them and removes this regression.
>
> In essence we turn "jalr ra,0(t1)" into a "jal ra,<dest>" if reachable, and restore the jalr if a new destination is not reachable.
>
> Please test on your hardware!
>
>
> Chi Square (100 runs each, 10 fastest iterations of each run, P550)
> JDK-23 (last version with trampoline calls)
> Mean: 3189.5827
> Standard Deviation: 284.6478
>
> JDK-25
> Mean: 3424.8905
> Standard Deviation: 222.2208
>
> Patch:
> Mean: 3144.8535
> Standard Deviation: 229.2577
>
>
> No issues found in t1, running t2 also. Stress tested on vf2, bpi-f3, p550.
Robbin Ehn has updated the pull request incrementally with one additional commit since the last revision:
Review comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26944/files
- new: https://git.openjdk.org/jdk/pull/26944/files/f0f7f20e..72e3ba6a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26944&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26944&range=02-03
Stats: 10 lines in 1 file changed: 1 ins; 0 del; 9 mod
Patch: https://git.openjdk.org/jdk/pull/26944.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26944/head:pull/26944
PR: https://git.openjdk.org/jdk/pull/26944
More information about the hotspot-compiler-dev
mailing list