This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add missing Read classes to some compressed instructions.
ClosedPublic

Authored by craig.topper on Jun 23 2023, 3:27 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 23 2023, 3:27 PM
Herald added a project: Restricted Project. · View Herald Transcript
craig.topper requested review of this revision.Jun 23 2023, 3:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 23 2023, 3:27 PM
Herald added subscribers: eopXD, MaskRay. · View Herald Transcript

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.

llvm/lib/Target/RISCV/RISCVInstrInfoC.td
554

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.

craig.topper added inline comments.Jun 24 2023, 8:18 PM
llvm/lib/Target/RISCV/RISCVInstrInfoC.td
554

Agreed. I’ll post another patch for that.

craig.topper retitled this revision from [RISCV] Add missing Read classe to some compressed instructions. to [RISCV] Add missing Read classes to some compressed instructions..Jun 24 2023, 8:18 PM
wangpc accepted this revision.Jun 24 2023, 8:22 PM

LGTM

This revision is now accepted and ready to land.Jun 24 2023, 8:22 PM
This revision was landed with ongoing or failed builds.Jun 25 2023, 8:30 AM
This revision was automatically updated to reflect the committed changes.