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 {
193193 return &OldOpnd;
194194}
195195
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-
206196MachineInstr *GCNDPPCombine::createDPPInst (MachineInstr &OrigMI,
207197 MachineInstr &MovMI,
208198 RegSubRegPair CombOldVGPR,
@@ -321,8 +311,8 @@ MachineInstr *GCNDPPCombine::createDPPInst(MachineInstr &OrigMI,
321311 // requirements are the same as for src0. We check src0 instead because
322312 // pseudos are shared between subtargets and allow SGPR for src1 on all.
323313 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) &&
326316 " Src0 and Src1 operands should have the same size" );
327317 }
328318
You can’t perform that action at this time.
0 commit comments