Integrated: 8329254: optimize integral reverse operations on x86 GFNI target.

Jatin Bhateja jbhateja at openjdk.org
Thu Apr 11 06:31:51 UTC 2024


On Thu, 28 Mar 2024 11:41:21 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:

> - Efficient GFNI based instruction sequence to compute integral reverse operation was added along with JEP-426 (VectorAPI 4th Incubation). https://bugs.openjdk.org/browse/JDK-8284960
> 
> - However, the CPUID based feature detection for GFNI was incorrectly performed under AVX512 check, fixing it shows roughly 2X performance improvement for Integer/Long.reverse APIs on E-core targets (MTL+).
> 
> 
> BaseLine:
> Benchmark              (size)  Mode  Cnt  Score   Error  Units
> Integers.reverse          500  avgt    2  0.120          us/op
> Longs.reverse             500  avgt    2  0.221          us/op
> 
> Withopt:
> Benchmark              (size)  Mode  Cnt  Score   Error  Units
> Integers.reverse          500  avgt    2  0.050          us/op
> Longs.reverse             500  avgt    2  0.086          us/op
> 
> 
> Kindly review.
> 
> Best Regards,
> Jatin

This pull request has now been integrated.

Changeset: b04b3047
Author:    Jatin Bhateja <jbhateja at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b04b3047ff5c5526bdf47925210e2a35ca191e6e
Stats:     6 lines in 2 files changed: 2 ins; 2 del; 2 mod

8329254: optimize integral reverse operations on x86 GFNI target.

Reviewed-by: sviswanathan

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

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


More information about the hotspot-compiler-dev mailing list