RFR: 8332265: RISC-V: Materialize pointers faster by using a temp register [v5]

Robbin Ehn rehn at openjdk.org
Thu May 23 10:55:36 UTC 2024


On Thu, 23 May 2024 10:46:15 GMT, Ludovic Henry <luhenry at openjdk.org> wrote:

>> Robbin Ehn has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains ten commits:
>> 
>>  - Merge branch 'master' into 8332265
>>  - More review comments
>>  - Review changes
>>  - Merge branch 'master' into 8332265
>>  - Merge branch 'master' into 8332265
>>  - Small review update
>>  - li48 -> movptr
>>  - Merge branch 'master' into 8332265
>>  - li48
>
> src/hotspot/cpu/riscv/macroAssembler_riscv.cpp line 3734:
> 
>> 3732: 
>> 3733: int MacroAssembler::static_call_stub_size() {
>> 3734:   // (lui, addi, slli, addi, slli, addi) + (lui + lui + ssli + add) + jalr
> 
> Instead of `ssli`, shouldn't it be `slli`?

Yes, for some reason I keep writing ssli instead slli :)

> src/hotspot/cpu/riscv/nativeInst_riscv.hpp line 402:
> 
>> 400:     } else if (is_movptr2_at(instruction_address())) {
>> 401:       if (is_addi_at(addr_at(movptr2_instruction_size - NativeInstruction::instruction_size))) {
>> 402:         // Assume: lui, addi, slli, addi, slli, addi
> 
> If it's a `movptr2` here, the `Assume: lui, addi, slli, addi, slli, addi` comment seems wrong. Same at https://github.com/openjdk/jdk/pull/19246/files#diff-cadab323d5b577bec017d8ed262bff9d2318e38c0a62afe567050e86ff62cbb9R405

Fixed

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19246#discussion_r1611458151
PR Review Comment: https://git.openjdk.org/jdk/pull/19246#discussion_r1611462685


More information about the hotspot-dev mailing list