Integrated: 8317976: Optimize SIMD sort for AMD Zen 4

Rohit Arul Raj rraj at openjdk.org
Sun Mar 30 13:25:15 UTC 2025


On Fri, 14 Mar 2025 10:48:09 GMT, Rohit Arul Raj <rraj at openjdk.org> wrote:

> In JDK-8309130, Array sort was optimized using  AVX512 SIMD instructions for x86_64. Currently, this optimization has been disabled for AMD Zen 4 [JDK-8317763] due to bad performance of compressstoreu. 
> Ref: https://www.reddit.com/r/java/comments/171t5sj/heads_up_openjdk_implementation_of_avx512_based/.
> 
> This patch enables Zen 4 to pick optimized AVX2 version of SIMD sort and Zen 5 picks the AVX512 version.
> 
> JTREG Tests: Completed Tier1 & Tier2 tests on Zen4 & Zen5 - No Regressions.
> 
> Attaching ArraySort performance data for Zen4 & Zen5.
> [Zen4-ArraySort-Data.txt](https://github.com/user-attachments/files/19245831/Zen4-ArraySort-Data.txt)
> [Zen5-ArraySort-Data.txt](https://github.com/user-attachments/files/19245833/Zen5-ArraySort-Data.txt)

This pull request has now been integrated.

Changeset: 8cbadf78
Author:    Rohit Arul Raj <rraj at openjdk.org>
Committer: SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8cbadf78d04d0e3d1136a5582f281de099fc5e49
Stats:     17 lines in 3 files changed: 13 ins; 0 del; 4 mod

8317976: Optimize SIMD sort for AMD Zen 4

Reviewed-by: psandoz, vlivanov

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

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


More information about the hotspot-compiler-dev mailing list