[PATCH] D153669: [RISCV] Add missing Read classe to some compressed instructions.
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 24 20:04:46 PDT 2023
wangpc added a comment.
Typo in title: `classe`->`classes`.
IIUC, the change has no influence to scheduler but static machine code analyser like `llvm-mca`, since there is no C instructions when doing scheduling.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoC.td:554
def C_JR : RVInst16CR<0b1000, 0b10, (outs), (ins GPRNoX0:$rs1),
- "c.jr", "$rs1">, Sched<[WriteJmpReg]> {
+ "c.jr", "$rs1">, Sched<[WriteJmpReg, ReadJalr]> {
let isBarrier = 1;
----------------
Comment not aim for this patch:
Do we really need a SchedWrite `WriteJmpReg`? It's only used in C instructions and it won't influence scheduler actually.
I think it can be removed and replaced by `WriteJalr`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153669/new/
https://reviews.llvm.org/D153669
More information about the llvm-commits
mailing list