Skip to content

Commit

Permalink
8342579: RISC-V: C2: Cleanup effect of killing flag register for call…
Browse files Browse the repository at this point in the history
… instructs

Reviewed-by: rehn, fjiang
  • Loading branch information
RealFYang committed Oct 21, 2024
1 parent 309b929 commit 76ae072
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/hotspot/cpu/riscv/riscv.ad
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 76ae072

Please sign in to comment.