forked from OSchip/llvm-project
Get rid of a couple of unnecessary getOpcode calls.
llvm-svn: 77035
This commit is contained in:
parent
62ef6a7f1c
commit
c1a5cfa9a0
|
@ -88,7 +88,7 @@ Thumb2InstrInfo::copyRegToReg(MachineBasicBlock &MBB,
|
|||
SrcRC == ARM::tGPRRegisterClass) ||
|
||||
(DestRC == ARM::tGPRRegisterClass &&
|
||||
SrcRC == ARM::GPRRegisterClass)) {
|
||||
AddDefaultCC(AddDefaultPred(BuildMI(MBB, I, DL, get(getOpcode(ARMII::MOVr)),
|
||||
AddDefaultCC(AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::t2MOVr),
|
||||
DestReg).addReg(SrcReg)));
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ rewriteFrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
|
|||
Offset += MI.getOperand(FrameRegIdx+1).getImm();
|
||||
if (Offset == 0) {
|
||||
// Turn it into a move.
|
||||
MI.setDesc(TII.get(getOpcode(ARMII::MOVr)));
|
||||
MI.setDesc(TII.get(ARM::t2MOVr));
|
||||
MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false);
|
||||
MI.RemoveOperand(FrameRegIdx+1);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue