mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Use 16-bit tMOVgpr2gpr instead of tMOVr to copy GPR registers in Thumb2 mode.
llvm-svn: 78398
This commit is contained in:
parent
0dab4cc8a0
commit
9c51e8f1fa
@ -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…
Reference in New Issue
Block a user