Integrated: 8309254: Implement fast-path for ASCII-compatible CharsetEncoders on RISC-V

Dingli Zhang dzhang at openjdk.org
Sat Jun 3 02:30:18 UTC 2023


On Thu, 1 Jun 2023 05:45:14 GMT, Dingli Zhang <dzhang at openjdk.org> wrote:

> [JDK-8274242](https://bugs.openjdk.org/browse/JDK-8274242) propose to extend the x86 ISO-8859-1 encoding intrinsic to work 
> also for ASCII-compatible encodings, which helps speeding up various 
> CharsetEncoders. Implementing a similar intrinsic should be considered on 
> RISC-V as well.
> 
> The instruct log with -XX:+PrintOptoAssembly output looks like:
> 
> 06e +   Encode ISO array R12, R11, R13 -> R10 # KILL R12, R11, R13, R7, V0-V3
> 
> 
> ## Testing:
> qemu w/ UseRVV:
> - [x] Tier1 tests (release)
> - [x] Tier2 tests (release)
> - [x] Tier3 tests (release)
> - [x] test/hotspot/jtreg/compiler/intrinsics/string/TestEncodeIntrinsics.java

This pull request has now been integrated.

Changeset: 61bb014a
Author:    Dingli Zhang <dzhang at openjdk.org>
Committer: Fei Yang <fyang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/61bb014a8692305c705a4cf0361e319275c35ca3
Stats:     48 lines in 4 files changed: 30 ins; 0 del; 18 mod

8309254: Implement fast-path for ASCII-compatible CharsetEncoders on RISC-V

Reviewed-by: luhenry, yzhu, fyang, fjiang

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

PR: https://git.openjdk.org/jdk/pull/14256


More information about the hotspot-compiler-dev mailing list