[all-commits] [llvm/llvm-project] 5888c1: [RISCV] Simplify some code in RISCVInstrInfo::veri...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Sep 14 17:07:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5888c157a74b052f227b19d15dbb913cc0232f57
      https://github.com/llvm/llvm-project/commit/5888c157a74b052f227b19d15dbb913cc0232f57
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-09-14 (Wed, 14 Sep 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp

  Log Message:
  -----------
  [RISCV] Simplify some code in RISCVInstrInfo::verifyInstruction. NFCI

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.

Differential Revision: https://reviews.llvm.org/D133905




More information about the All-commits mailing list