RFR: 8351623: VectorAPI: Add SVE implementation of subword gather load operation [v6]

Paul Sandoz psandoz at openjdk.org
Wed Nov 12 20:25:28 UTC 2025


On Wed, 12 Nov 2025 01:47:31 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

> Yes, converting mask to vector will be the way to resolve. Do you think it's better that defining a private VectorMask function for the slice operation? The function could be implemented with corresponding vector slice APIs. Although this function is not friendly to SVE performance, it wins on unifying the implementation.

If it helps just add a utility method that does the slice/rearrange mask<->vector conversion, but given your use case i expect it only to be used in one location, so perhaps keep it close to there. It maybe you don't need full slice functionality, since you only care about a part of the mask elements that was rearranged to the start of the vector and therefore don't need to zero out the remaining parts that are not relevant. (The same happens for conversion by parts.) Since we don't yet have any slice intrinsic i think that would be OK and we could revisit later. Ideally we should able to optimize rearrange of vectors using constant shuffles with recognizable patterns.

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

PR Comment: https://git.openjdk.org/jdk/pull/26236#issuecomment-3523758766


More information about the hotspot-compiler-dev mailing list