[llvm-commits] [llvm] r77035 - in /llvm/trunk/lib/Target/ARM: Thumb2InstrInfo.cpp Thumb2RegisterInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Jul 24 18:25:08 PDT 2009
Author: evancheng
Date: Fri Jul 24 20:25:08 2009
New Revision: 77035
URL: http://llvm.org/viewvc/llvm-project?rev=77035&view=rev
Log:
Get rid of a couple of unnecessary getOpcode calls.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
llvm/trunk/lib/Target/ARM/Thumb2RegisterInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp?rev=77035&r1=77034&r2=77035&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp Fri Jul 24 20:25:08 2009
@@ -88,7 +88,7 @@
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;
}
Modified: llvm/trunk/lib/Target/ARM/Thumb2RegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2RegisterInfo.cpp?rev=77035&r1=77034&r2=77035&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2RegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2RegisterInfo.cpp Fri Jul 24 20:25:08 2009
@@ -180,7 +180,7 @@
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;
More information about the llvm-commits
mailing list