This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Simplify some code in RISCVInstrInfo::verifyInstruction. NFCI
ClosedPublic

Authored by craig.topper on Sep 14 2022, 4:00 PM.

Details

Summary

This code was written as if it lived in the MC layer instead of
the CodeGen layer. We get the MCInstrDesc directly from MachineInstr.
And we can use RISCVSubtarget::is64Bit instead of going to the
Triple.

Diff Detail

Event Timeline

craig.topper created this revision.Sep 14 2022, 4:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 4:00 PM
craig.topper requested review of this revision.Sep 14 2022, 4:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 14 2022, 4:00 PM
reames accepted this revision.Sep 14 2022, 4:46 PM

LGTM

This revision is now accepted and ready to land.Sep 14 2022, 4:46 PM