Integrated: 8332265: RISC-V: Materialize pointers faster by using a temp register

Robbin Ehn rehn at openjdk.org
Tue May 28 12:57:11 UTC 2024


On Wed, 15 May 2024 09:34:11 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

> Hi, please consider!
> 
> Materializing a 48-bit pointer, using an additional register, we can do with:
> lui + lui + slli + add + addi
> This 15% faster both on VF2 and in CPU models, compared to movptr().
> 
> As we often materialize during calls there is free registers.
> 
> I have choose just a few spot to use it, many more can use.
> E.g. la() with tmp register can use li48 instead of movptr.
> 
> Running tests now (so far so good), as if I screwed up IC calls it should be seen fast.
> And benchmarks when hardware is free.

This pull request has now been integrated.

Changeset: 7b52d0ac
Author:    Robbin Ehn <rehn at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7b52d0acfc7d6083b407efa0877c139e9837f86b
Stats:     212 lines in 8 files changed: 123 ins; 13 del; 76 mod

8332265: RISC-V: Materialize pointers faster by using a temp register

Reviewed-by: fyang, luhenry, mli

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

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


More information about the hotspot-dev mailing list