File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -193,16 +193,6 @@ MachineOperand *GCNDPPCombine::getOldOpndValue(MachineOperand &OldOpnd) const {
193
193
return &OldOpnd;
194
194
}
195
195
196
- [[maybe_unused]] static unsigned getOperandSize (MachineInstr &MI, unsigned Idx,
197
- MachineRegisterInfo &MRI) {
198
- int16_t RegClass = MI.getDesc ().operands ()[Idx].RegClass ;
199
- if (RegClass == -1 )
200
- return 0 ;
201
-
202
- const TargetRegisterInfo *TRI = MRI.getTargetRegisterInfo ();
203
- return TRI->getRegSizeInBits (*TRI->getRegClass (RegClass));
204
- }
205
-
206
196
MachineInstr *GCNDPPCombine::createDPPInst (MachineInstr &OrigMI,
207
197
MachineInstr &MovMI,
208
198
RegSubRegPair CombOldVGPR,
@@ -321,8 +311,8 @@ MachineInstr *GCNDPPCombine::createDPPInst(MachineInstr &OrigMI,
321
311
// requirements are the same as for src0. We check src0 instead because
322
312
// pseudos are shared between subtargets and allow SGPR for src1 on all.
323
313
if (!ST->hasDPPSrc1SGPR ()) {
324
- assert (getOperandSize (*DPPInst, Src0Idx, *MRI ) ==
325
- getOperandSize (*DPPInst, NumOperands, *MRI ) &&
314
+ assert (TII-> getOpSize (*DPPInst, Src0Idx) ==
315
+ TII-> getOpSize (*DPPInst, NumOperands) &&
326
316
" Src0 and Src1 operands should have the same size" );
327
317
}
328
318
You can’t perform that action at this time.
0 commit comments