From: Cameron Zwarich Date: Thu, 19 May 2011 02:56:23 +0000 (+0000) Subject: Reuse the TargetInstrDesc. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=462b6dc6bfd95b82eb8a0d2bd8f15a76e7b15957;p=oota-llvm.git Reuse the TargetInstrDesc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131625 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.cpp b/lib/Target/ARM/ARMBaseRegisterInfo.cpp index 9a18a961aaa..e6c5c1cb606 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.cpp +++ b/lib/Target/ARM/ARMBaseRegisterInfo.cpp @@ -1115,8 +1115,7 @@ materializeFrameBaseRegister(MachineBasicBlock *MBB, 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())