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

Yudi Zheng yzheng at openjdk.org
Wed May 14 13:24:02 UTC 2025


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.

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

Commit messages:
 - 8356971: [JVMCI] Export VM_Version::supports_avx512_simd_sort to JVMCI compiler.

Changes: https://git.openjdk.org/jdk/pull/25225/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25225&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8356971
  Stats: 4 lines in 3 files changed: 4 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/25225.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25225/head:pull/25225

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


More information about the graal-dev mailing list