[PATCH] D85366: [RISCV] Do not mandate scheduling for CSR instructions
Evandro Menezes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 13:31:24 PDT 2020
evandro updated this revision to Diff 287768.
evandro retitled this revision from "[RISCV] Disparage CSR instructions" to "[RISCV] Do not mandate scheduling for CSR instructions".
evandro edited the summary of this revision.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85366/new/
https://reviews.llvm.org/D85366
Files:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
Index: llvm/lib/Target/RISCV/RISCVInstrInfo.td
===================================================================
--- llvm/lib/Target/RISCV/RISCVInstrInfo.td
+++ llvm/lib/Target/RISCV/RISCVInstrInfo.td
@@ -368,12 +368,14 @@
: RVInstR<funct7, funct3, OPC_OP, (outs GPR:$rd), (ins GPR:$rs1, GPR:$rs2),
opcodestr, "$rd, $rs1, $rs2">;
-let hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
+let hasNoSchedulingInfo = 1,
+ hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
class CSR_ir<bits<3> funct3, string opcodestr>
: RVInstI<funct3, OPC_SYSTEM, (outs GPR:$rd), (ins csr_sysreg:$imm12, GPR:$rs1),
opcodestr, "$rd, $imm12, $rs1">, Sched<[WriteCSR, ReadCSR]>;
-let hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
+let hasNoSchedulingInfo = 1,
+ hasSideEffects = 1, mayLoad = 0, mayStore = 0 in
class CSR_ii<bits<3> funct3, string opcodestr>
: RVInstI<funct3, OPC_SYSTEM, (outs GPR:$rd),
(ins csr_sysreg:$imm12, uimm5:$rs1),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85366.287768.patch
Type: text/x-patch
Size: 993 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/6971e578/attachment.bin>
More information about the llvm-commits
mailing list