RFR: 8360000: RISC-V: implement aot [v2]
Fei Yang
fyang at openjdk.org
Tue Jul 15 02:26:39 UTC 2025
On Mon, 14 Jul 2025 10:25:30 GMT, Hamlin Li <mli at openjdk.org> wrote:
>> src/hotspot/cpu/riscv/macroAssembler_riscv.cpp line 800:
>>
>>> 798: push_reg(RegSet::of(t1, xmethod), sp); // push << t1 & xmethod >> to sp
>>> 799: movptr(t1, RuntimeAddress(entry_point), t0);
>>> 800: jalr(t1);
>>
>> This movptr + jalr sequence could be further simplified into `rt_call(entry_point)`, which could help save one add instruction.
>
> Not sure if I understand your suggestion right.
> If we use `rt_call` here, it will only call into `movptr1`, whose instructions is one longer than `movptr2`.
Ah, yes. I think you are right.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26101#discussion_r2206144302
More information about the hotspot-dev
mailing list