Reuse the TargetInstrDesc.

llvm-svn: 131625
This commit is contained in:
Cameron Zwarich 2011-05-19 02:56:23 +00:00
parent 68610c1673
commit 58eafde58b
1 changed files with 1 additions and 2 deletions

View File

@ -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())