RFR: 8330735: RISC-V: No need to move sp to tmp register in set_last_Java_frame
Fei Yang
fyang at openjdk.org
Mon Apr 22 02:51:33 UTC 2024
On Sat, 20 Apr 2024 12:42:20 GMT, Feilong Jiang <fjiang at openjdk.org> wrote:
> Hi, please review this refactoring to remove the unnecessary move from sp to temp register.
>
> There is no restriction for riscv when using `sp` as an operand in instructions. So we do not have to move the sp register to a temp register before we store `last_java_sp`.
>
> Testing:
>
> - [x] Tier1-3 (linux-riscv64, release)
Looks fine. Thanks for the cleanup!
-------------
Marked as reviewed by fyang (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/18875#pullrequestreview-2013678102
More information about the hotspot-dev
mailing list