From 76ae072a1fec5f2af4ac4c633bc67a0c4c756a90 Mon Sep 17 00:00:00 2001 From: Fei Yang Date: Mon, 21 Oct 2024 01:46:26 +0000 Subject: [PATCH] 8342579: RISC-V: C2: Cleanup effect of killing flag register for call instructs Reviewed-by: rehn, fjiang --- src/hotspot/cpu/riscv/riscv.ad | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hotspot/cpu/riscv/riscv.ad b/src/hotspot/cpu/riscv/riscv.ad index 54d1f1c0573..ab451659145 100644 --- a/src/hotspot/cpu/riscv/riscv.ad +++ b/src/hotspot/cpu/riscv/riscv.ad @@ -9989,11 +9989,11 @@ instruct CallStaticJavaDirect(method meth) // Call Java Dynamic Instruction // Note: If this code changes, the corresponding ret_addr_offset() and // compute_padding() functions will have to be adjusted. -instruct CallDynamicJavaDirect(method meth, rFlagsReg cr) +instruct CallDynamicJavaDirect(method meth) %{ match(CallDynamicJava); - effect(USE meth, KILL cr); + effect(USE meth); ins_cost(BRANCH_COST + ALU_COST * 5); @@ -10008,11 +10008,11 @@ instruct CallDynamicJavaDirect(method meth, rFlagsReg cr) // Call Runtime Instruction -instruct CallRuntimeDirect(method meth, rFlagsReg cr) +instruct CallRuntimeDirect(method meth) %{ match(CallRuntime); - effect(USE meth, KILL cr); + effect(USE meth); ins_cost(BRANCH_COST); @@ -10025,11 +10025,11 @@ instruct CallRuntimeDirect(method meth, rFlagsReg cr) // Call Runtime Instruction -instruct CallLeafDirect(method meth, rFlagsReg cr) +instruct CallLeafDirect(method meth) %{ match(CallLeaf); - effect(USE meth, KILL cr); + effect(USE meth); ins_cost(BRANCH_COST); @@ -10042,11 +10042,11 @@ instruct CallLeafDirect(method meth, rFlagsReg cr) // Call Runtime Instruction without safepoint and with vector arguments -instruct CallLeafDirectVector(method meth, rFlagsReg cr) +instruct CallLeafDirectVector(method meth) %{ match(CallLeafVector); - effect(USE meth, KILL cr); + effect(USE meth); ins_cost(BRANCH_COST); @@ -10059,11 +10059,11 @@ instruct CallLeafDirectVector(method meth, rFlagsReg cr) // Call Runtime Instruction -instruct CallLeafNoFPDirect(method meth, rFlagsReg cr) +instruct CallLeafNoFPDirect(method meth) %{ match(CallLeafNoFP); - effect(USE meth, KILL cr); + effect(USE meth); ins_cost(BRANCH_COST);