Skip to content

Commit 76ae072

Browse files
committed
8342579: RISC-V: C2: Cleanup effect of killing flag register for call instructs
Reviewed-by: rehn, fjiang
1 parent 309b929 commit 76ae072

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/hotspot/cpu/riscv/riscv.ad

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9989,11 +9989,11 @@ instruct CallStaticJavaDirect(method meth)
99899989
// Call Java Dynamic Instruction
99909990
// Note: If this code changes, the corresponding ret_addr_offset() and
99919991
// compute_padding() functions will have to be adjusted.
9992-
instruct CallDynamicJavaDirect(method meth, rFlagsReg cr)
9992+
instruct CallDynamicJavaDirect(method meth)
99939993
%{
99949994
match(CallDynamicJava);
99959995

9996-
effect(USE meth, KILL cr);
9996+
effect(USE meth);
99979997

99989998
ins_cost(BRANCH_COST + ALU_COST * 5);
99999999

@@ -10008,11 +10008,11 @@ instruct CallDynamicJavaDirect(method meth, rFlagsReg cr)
1000810008

1000910009
// Call Runtime Instruction
1001010010

10011-
instruct CallRuntimeDirect(method meth, rFlagsReg cr)
10011+
instruct CallRuntimeDirect(method meth)
1001210012
%{
1001310013
match(CallRuntime);
1001410014

10015-
effect(USE meth, KILL cr);
10015+
effect(USE meth);
1001610016

1001710017
ins_cost(BRANCH_COST);
1001810018

@@ -10025,11 +10025,11 @@ instruct CallRuntimeDirect(method meth, rFlagsReg cr)
1002510025

1002610026
// Call Runtime Instruction
1002710027

10028-
instruct CallLeafDirect(method meth, rFlagsReg cr)
10028+
instruct CallLeafDirect(method meth)
1002910029
%{
1003010030
match(CallLeaf);
1003110031

10032-
effect(USE meth, KILL cr);
10032+
effect(USE meth);
1003310033

1003410034
ins_cost(BRANCH_COST);
1003510035

@@ -10042,11 +10042,11 @@ instruct CallLeafDirect(method meth, rFlagsReg cr)
1004210042

1004310043
// Call Runtime Instruction without safepoint and with vector arguments
1004410044

10045-
instruct CallLeafDirectVector(method meth, rFlagsReg cr)
10045+
instruct CallLeafDirectVector(method meth)
1004610046
%{
1004710047
match(CallLeafVector);
1004810048

10049-
effect(USE meth, KILL cr);
10049+
effect(USE meth);
1005010050

1005110051
ins_cost(BRANCH_COST);
1005210052

@@ -10059,11 +10059,11 @@ instruct CallLeafDirectVector(method meth, rFlagsReg cr)
1005910059

1006010060
// Call Runtime Instruction
1006110061

10062-
instruct CallLeafNoFPDirect(method meth, rFlagsReg cr)
10062+
instruct CallLeafNoFPDirect(method meth)
1006310063
%{
1006410064
match(CallLeafNoFP);
1006510065

10066-
effect(USE meth, KILL cr);
10066+
effect(USE meth);
1006710067

1006810068
ins_cost(BRANCH_COST);
1006910069

0 commit comments

Comments
 (0)