From 1e35da8d3341ed1af266e5b59aa90bfcfae6576a Mon Sep 17 00:00:00 2001 From: Hamlin Li Date: Fri, 25 Oct 2024 14:28:23 +0000 Subject: [PATCH] 8343063: RISC-V: remove redundant reg copy in generate_resolve_blob Reviewed-by: fyang, rehn --- src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp b/src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp index cec6a5f9760..29c96112ead 100644 --- a/src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp +++ b/src/hotspot/cpu/riscv/sharedRuntime_riscv.cpp @@ -2616,19 +2616,18 @@ RuntimeStub* SharedRuntime::generate_resolve_blob(SharedStubId id, address desti __ reset_last_Java_frame(false); // check for pending exceptions Label pending; - __ ld(t0, Address(xthread, Thread::pending_exception_offset())); - __ bnez(t0, pending); + __ ld(t1, Address(xthread, Thread::pending_exception_offset())); + __ bnez(t1, pending); // get the returned Method* __ get_vm_result_2(xmethod, xthread); __ sd(xmethod, Address(sp, reg_saver.reg_offset_in_bytes(xmethod))); - // x10 is where we want to jump, overwrite t0 which is saved and temporary - __ sd(x10, Address(sp, reg_saver.reg_offset_in_bytes(t0))); + // x10 is where we want to jump, overwrite t1 which is saved and temporary + __ sd(x10, Address(sp, reg_saver.reg_offset_in_bytes(t1))); reg_saver.restore_live_registers(masm); // We are back to the original state on entry and ready to go. - __ mv(t1, t0); __ jr(t1); // Pending exception after the safepoint