RFR: 8349556: RISC-V: improve the performance when -COH and -AvoidUnalignedAccesses for UL and LU string comparison [v2]

Hamlin Li mli at openjdk.org
Mon Feb 10 11:29:09 UTC 2025


On Mon, 10 Feb 2025 11:00:51 GMT, Vladimir Kempik <vkempik at openjdk.org> wrote:

> I can't see how this end up improving perf, You have moved loading job for first few bytes from one place to another. Technically it's correct and if jmh shows improvement - let it be

The reason is that with -COH && -Avoid, some alignment instructions that were previously required are omitted.

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

PR Comment: https://git.openjdk.org/jdk/pull/23495#issuecomment-2647704435


More information about the hotspot-compiler-dev mailing list