[AMDGPU] Use MCInstrDesc::getSize. NFC.
authorJay Foad <jay.foad@amd.com>
Wed, 11 Jan 2023 13:16:34 +0000 (13:16 +0000)
committerJay Foad <jay.foad@amd.com>
Wed, 11 Jan 2023 13:22:38 +0000 (13:22 +0000)
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp

index be4b477..2592584 100644 (file)
@@ -599,7 +599,7 @@ bool GCNDPPCombine::combineDPPMov(MachineInstr &MovMI) const {
     LLVM_DEBUG(dbgs() << "  try: " << OrigMI);
 
     auto OrigOp = OrigMI.getOpcode();
-    assert((TII->get(OrigOp).Size != 4 || !AMDGPU::isTrue16Inst(OrigOp)) &&
+    assert((TII->get(OrigOp).getSize() != 4 || !AMDGPU::isTrue16Inst(OrigOp)) &&
            "There should not be e32 True16 instructions pre-RA");
     if (OrigOp == AMDGPU::REG_SEQUENCE) {
       Register FwdReg = OrigMI.getOperand(0).getReg();