Integrated: 8356971: [JVMCI] Export VM_Version::supports_avx512_simd_sort to JVMCI compiler

Yudi Zheng yzheng at openjdk.org
Wed May 14 19:50:55 UTC 2025


On Wed, 14 May 2025 13:16:26 GMT, Yudi Zheng <yzheng at openjdk.org> wrote:

> HotSpot selects between AVX512 and AVX2 implementations of array sort/partition stubs based on the return value of VM_Version::supports_avx512_simd_sort. The AVX2 version supports fewer element types than the AVX512 version and may fail at runtime if unsupported types are encountered. This capability information should be exposed to the JVMCI compiler to properly guard against incorrect intrinsification. This is especially important because VM_Version::supports_avx512_simd_sort includes a special exclusion rule for AMD Zen4, due to performance considerations.

This pull request has now been integrated.

Changeset: 948ade8e
Author:    Yudi Zheng <yzheng at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/948ade8e7003a41683600428c8e3155c7ed798db
Stats:     4 lines in 3 files changed: 4 ins; 0 del; 0 mod

8356971: [JVMCI] Export VM_Version::supports_avx512_simd_sort to JVMCI compiler

Reviewed-by: dnsimon

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

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


More information about the graal-dev mailing list