[RISCV] Remove unused Opcode field from RVInst16. NFC
authorCraig Topper <craig.topper@sifive.com>
Thu, 20 Jul 2023 15:14:41 +0000 (08:14 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 20 Jul 2023 15:18:06 +0000 (08:18 -0700)
Unlike RVInst which also has an Opcode field, all of the subclasseso
of RVInst16 assign Inst{1-0} directly.

Reviewed By: asb, wangpc

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

llvm/lib/Target/RISCV/RISCVInstrFormatsC.td

index 9575866..e14be7d 100644 (file)
@@ -20,8 +20,6 @@ class RVInst16<dag outs, dag ins, string opcodestr, string argstr,
   // to build the decode table.
   field bits<16> SoftFail = 0;
   let Size = 2;
-
-  bits<2> Opcode = 0;
 }
 
 class RVInst16CR<bits<4> funct4, bits<2> opcode, dag outs, dag ins,