mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Use 16-bit tMOVgpr2gpr instead of tMOVr to copy GPR registers in Thumb2 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d2426c470
commit
e118cb6146
@ -3,5 +3,3 @@
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
We should be using ADD / SUB rd, sp, rm <shift> instructions.
|
||||
|
||||
copyRegToReg should use tMOVgpr2gpr instead of t2MOVr?
|
||||
|
@ -65,12 +65,7 @@ Thumb2InstrInfo::copyRegToReg(MachineBasicBlock &MBB,
|
||||
|
||||
if (DestRC == ARM::GPRRegisterClass &&
|
||||
SrcRC == ARM::GPRRegisterClass) {
|
||||
// FIXME: Just use tMOVgpr2gpr since it's shorter?
|
||||
if (SrcReg == ARM::SP || DestReg == ARM::SP)
|
||||
BuildMI(MBB, I, DL, get(ARM::tMOVgpr2gpr), DestReg).addReg(SrcReg);
|
||||
else
|
||||
AddDefaultCC(AddDefaultPred(BuildMI(MBB, I, DL, get(ARM::t2MOVr),
|
||||
DestReg).addReg(SrcReg)));
|
||||
BuildMI(MBB, I, DL, get(ARM::tMOVgpr2gpr), DestReg).addReg(SrcReg);
|
||||
return true;
|
||||
} else if (DestRC == ARM::GPRRegisterClass &&
|
||||
SrcRC == ARM::tGPRRegisterClass) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user