[llvm-commits] [llvm] r131625 - /llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp
Cameron Zwarich
zwarich at apple.com
Wed May 18 19:56:23 PDT 2011
Author: zwarich
Date: Wed May 18 21:56:23 2011
New Revision: 131625
URL: http://llvm.org/viewvc/llvm-project?rev=131625&view=rev
Log:
Reuse the TargetInstrDesc.
Modified:
llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp?rev=131625&r1=131624&r2=131625&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp Wed May 18 21:56:23 2011
@@ -1115,8 +1115,7 @@
MachineRegisterInfo &MRI = MBB->getParent()->getRegInfo();
MRI.constrainRegClass(BaseReg, TID.OpInfo[0].getRegClass(this));
- MachineInstrBuilder MIB =
- BuildMI(*MBB, Ins, DL, TII.get(ADDriOpc), BaseReg)
+ MachineInstrBuilder MIB = BuildMI(*MBB, Ins, DL, TID, BaseReg)
.addFrameIndex(FrameIdx).addImm(Offset);
if (!AFI->isThumb1OnlyFunction())
More information about the llvm-commits
mailing list