RFR: 8356971: [JVMCI] Export VM_Version::supports_avx512_simd_sort to JVMCI compiler
Doug Simon
dnsimon at openjdk.org
Wed May 14 13:42:52 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.
Marked as reviewed by dnsimon (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/25225#pullrequestreview-2840252727
More information about the graal-dev
mailing list