mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Get rid of a couple of unnecessary getOpcode calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb490a7aa3
commit
c6b54d5a33
@ -88,7 +88,7 @@ Thumb2InstrInfo::copyRegToReg(MachineBasicBlock &MBB,
|
|||||||
SrcRC == ARM::tGPRRegisterClass) ||
|
SrcRC == ARM::tGPRRegisterClass) ||
|
||||||
(DestRC == ARM::tGPRRegisterClass &&
|
(DestRC == ARM::tGPRRegisterClass &&
|
||||||
SrcRC == ARM::GPRRegisterClass)) {
|
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)));
|
DestReg).addReg(SrcReg)));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -180,7 +180,7 @@ rewriteFrameIndex(MachineInstr &MI, unsigned FrameRegIdx,
|
|||||||
Offset += MI.getOperand(FrameRegIdx+1).getImm();
|
Offset += MI.getOperand(FrameRegIdx+1).getImm();
|
||||||
if (Offset == 0) {
|
if (Offset == 0) {
|
||||||
// Turn it into a move.
|
// 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.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false);
|
||||||
MI.RemoveOperand(FrameRegIdx+1);
|
MI.RemoveOperand(FrameRegIdx+1);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user