@@ -5416,13 +5416,10 @@ void SIInstrInfo::legalizeOpWithMove(MachineInstr &MI, unsigned OpIdx) const {
5416
5416
MO.ChangeToRegister (Reg, false );
5417
5417
}
5418
5418
5419
- unsigned SIInstrInfo::buildExtractSubReg (MachineBasicBlock::iterator MI,
5420
- MachineRegisterInfo &MRI,
5421
- MachineOperand &SuperReg,
5422
- const TargetRegisterClass *SuperRC,
5423
- unsigned SubIdx,
5424
- const TargetRegisterClass *SubRC)
5425
- const {
5419
+ unsigned SIInstrInfo::buildExtractSubReg (
5420
+ MachineBasicBlock::iterator MI, MachineRegisterInfo &MRI,
5421
+ const MachineOperand &SuperReg, const TargetRegisterClass *SuperRC,
5422
+ unsigned SubIdx, const TargetRegisterClass *SubRC) const {
5426
5423
MachineBasicBlock *MBB = MI->getParent ();
5427
5424
DebugLoc DL = MI->getDebugLoc ();
5428
5425
Register SubReg = MRI.createVirtualRegister (SubRC);
@@ -5449,12 +5446,9 @@ unsigned SIInstrInfo::buildExtractSubReg(MachineBasicBlock::iterator MI,
5449
5446
}
5450
5447
5451
5448
MachineOperand SIInstrInfo::buildExtractSubRegOrImm (
5452
- MachineBasicBlock::iterator MII,
5453
- MachineRegisterInfo &MRI,
5454
- MachineOperand &Op,
5455
- const TargetRegisterClass *SuperRC,
5456
- unsigned SubIdx,
5457
- const TargetRegisterClass *SubRC) const {
5449
+ MachineBasicBlock::iterator MII, MachineRegisterInfo &MRI,
5450
+ const MachineOperand &Op, const TargetRegisterClass *SuperRC,
5451
+ unsigned SubIdx, const TargetRegisterClass *SubRC) const {
5458
5452
if (Op.isImm ()) {
5459
5453
if (SubIdx == AMDGPU::sub0)
5460
5454
return MachineOperand::CreateImm (static_cast <int32_t >(Op.getImm ()));
0 commit comments