RFR: 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.
Thanks for the review! Passed tier1-3.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25225#issuecomment-2881367102
More information about the graal-dev
mailing list