[llvm-commits] [llvm] r78549 - /llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
Evan Cheng
evan.cheng at apple.com
Sun Aug 9 19:06:53 PDT 2009
Author: evancheng
Date: Sun Aug 9 21:06:53 2009
New Revision: 78549
URL: http://llvm.org/viewvc/llvm-project?rev=78549&view=rev
Log:
Always use the 16-bit tMOVgpr2gpr instead of the 32-bit t2MOVr.
Modified:
llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp?rev=78549&r1=78548&r2=78549&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb2InstrInfo.cpp Sun Aug 9 21:06:53 2009
@@ -337,8 +337,7 @@
bool isSP = FrameReg == ARM::SP;
if (Offset == 0) {
// Turn it into a move.
- unsigned NewOpc = isSP ? ARM::tMOVgpr2gpr : ARM::t2MOVr;
- MI.setDesc(TII.get(NewOpc));
+ MI.setDesc(TII.get(ARM::tMOVgpr2gpr));
MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false);
MI.RemoveOperand(FrameRegIdx+1);
return 0;
More information about the llvm-commits
mailing list