@@ -5244,7 +5244,7 @@ void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
5244
5244
return ;
5245
5245
5246
5246
unsigned Opcode = MI->getOpcode ();
5247
- bool IsRelplaceIntr = false ;
5247
+ bool IsReplaceInstr = false ;
5248
5248
switch (Opcode) {
5249
5249
case PPC::OR:
5250
5250
case PPC::OR8:
@@ -5264,7 +5264,7 @@ void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
5264
5264
}
5265
5265
5266
5266
if (Opcode == PPC::OR || Opcode == PPC::ISEL)
5267
- IsRelplaceIntr = true ;
5267
+ IsReplaceInstr = true ;
5268
5268
else
5269
5269
return ;
5270
5270
}
@@ -5299,7 +5299,7 @@ void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
5299
5299
5300
5300
if (Opcode == PPC::ORI || Opcode == PPC::XORI || Opcode == PPC::ORIS ||
5301
5301
Opcode == PPC::ORIS || Opcode == PPC::XORIS)
5302
- IsRelplaceIntr = true ;
5302
+ IsReplaceInstr = true ;
5303
5303
else
5304
5304
return ;
5305
5305
break ;
@@ -5312,7 +5312,7 @@ void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
5312
5312
Register SrcReg2 = MI->getOperand (2 ).getReg ();
5313
5313
replaceInstrAfterElimExt32To64 (SrcReg2, MRI, BinOpDepth, LV);
5314
5314
if (Opcode == PPC::AND)
5315
- IsRelplaceIntr = true ;
5315
+ IsReplaceInstr = true ;
5316
5316
else
5317
5317
return ;
5318
5318
}
@@ -5326,7 +5326,7 @@ void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
5326
5326
MI->getMF ()->getSubtarget <PPCSubtarget>().getInstrInfo ();
5327
5327
if ((definedBySignExtendingOp (Reg, MRI) && !TII->isZExt32To64 (Opcode) &&
5328
5328
!isOpZeroOfSubwordPreincLoad (Opcode)) ||
5329
- IsRelplaceIntr ) {
5329
+ IsReplaceInstr ) {
5330
5330
5331
5331
const TargetRegisterClass *RC = MRI->getRegClass (Reg);
5332
5332
assert (RC != &PPC::G8RCRegClass && RC != &PPC::G8RC_and_G8RC_NOX0RegClass &&
@@ -5367,29 +5367,29 @@ void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
5367
5367
DenseMap<unsigned , Register> PromoteRegs;
5368
5368
DenseMap<unsigned , Register> ReCalRegs;
5369
5369
for (unsigned i = 1 ; i < MI->getNumOperands (); i++) {
5370
- MachineOperand &Oprand = MI->getOperand (i);
5371
- if (Oprand .isReg ()) {
5372
- Register OprandReg = Oprand .getReg ();
5373
- if (!OprandReg .isVirtual ())
5370
+ MachineOperand &Operand = MI->getOperand (i);
5371
+ if (Operand .isReg ()) {
5372
+ Register OperandReg = Operand .getReg ();
5373
+ if (!OperandReg .isVirtual ())
5374
5374
continue ;
5375
5375
5376
5376
const TargetRegisterClass *RC =
5377
5377
TRI->getRegClass (MCID.operands ()[i].RegClass );
5378
- const TargetRegisterClass *OrgRC = MRI->getRegClass (OprandReg );
5379
- if (RC != MRI->getRegClass (OprandReg ) &&
5378
+ const TargetRegisterClass *OrgRC = MRI->getRegClass (OperandReg );
5379
+ if (RC != MRI->getRegClass (OperandReg ) &&
5380
5380
(OrgRC == &PPC::GPRCRegClass ||
5381
5381
OrgRC == &PPC::GPRC_and_GPRC_NOR0RegClass)) {
5382
5382
Register TmpReg = MRI->createVirtualRegister (RC);
5383
5383
Register DstTmpReg = MRI->createVirtualRegister (RC);
5384
5384
BuildMI (*MBB, MI, DL, TII->get (PPC::IMPLICIT_DEF), TmpReg);
5385
5385
BuildMI (*MBB, MI, DL, TII->get (PPC::INSERT_SUBREG), DstTmpReg)
5386
5386
.addReg (TmpReg)
5387
- .addReg (OprandReg )
5387
+ .addReg (OperandReg )
5388
5388
.addImm (PPC::sub_32);
5389
5389
PromoteRegs[i] = DstTmpReg;
5390
5390
ReCalRegs[i] = DstTmpReg;
5391
5391
} else {
5392
- ReCalRegs[i] = OprandReg ;
5392
+ ReCalRegs[i] = OperandReg ;
5393
5393
}
5394
5394
}
5395
5395
}
0 commit comments