RFR: 8322174: RISC-V: C2 VectorizedHashCode RVV Version [v10]

Yuri Gaevsky duke at openjdk.org
Thu Jul 17 09:09:52 UTC 2025


On Thu, 17 Jul 2025 05:57:33 GMT, Fei Yang <fyang at openjdk.org> wrote:

> Looking at the JMH numbers, it's interesting to find that `-XX:DisableIntrinsic=_vectorizedHashCode` outperforms `-XX:-UseRVV`. If that is the case, then why would we want the scalar version (that is `C2_MacroAssembler::arrays_hashcode()`)?

You are right: the non-RVV version of intrinsic performs worse on BPI-F3 hardware with size > 70, though originally it was better on StarFive JH7110 and T-Head RVB-ICE, please see https://github.com/openjdk/jdk/pull/16629.

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

PR Comment: https://git.openjdk.org/jdk/pull/17413#issuecomment-3083267477


More information about the hotspot-compiler-dev mailing list