diff options
| author | Dan Gohman <gohman@apple.com> | 2008-07-07 20:09:12 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-07-07 20:09:12 +0000 |
| commit | 56fa3d8a70c9658efeee977f61accfbebf0ce6b5 (patch) | |
| tree | 8312c188967fe0aa0d830d87ab387c66b1983b73 | |
| parent | 8ca75f0779ae9c540f18a8058b9f923ec887069f (diff) | |
| download | external_llvm-56fa3d8a70c9658efeee977f61accfbebf0ce6b5.zip external_llvm-56fa3d8a70c9658efeee977f61accfbebf0ce6b5.tar.gz external_llvm-56fa3d8a70c9658efeee977f61accfbebf0ce6b5.tar.bz2 | |
Simplify this use of BuildMI. This is also in preparation for
pool-allocating MachineInstrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53198 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 7adf875..756b0f5 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -409,7 +409,6 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, if (PerformTailCallOpt && I->getOpcode() == PPC::ADJCALLSTACKUP) { // Add (actually substract) back the amount the callee popped on return. if (int CalleeAmt = I->getOperand(1).getImm()) { - MachineInstr * New = NULL; bool is64Bit = Subtarget.isPPC64(); CalleeAmt *= -1; unsigned StackReg = is64Bit ? PPC::X1 : PPC::R1; @@ -420,9 +419,8 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, unsigned ORIInstr = is64Bit ? PPC::ORI8 : PPC::ORI; if (isInt16(CalleeAmt)) { - New = BuildMI(TII.get(ADDIInstr), StackReg).addReg(StackReg). + BuildMI(MBB, I, TII.get(ADDIInstr), StackReg).addReg(StackReg). addImm(CalleeAmt); - MBB.insert(I, New); } else { MachineBasicBlock::iterator MBBI = I; BuildMI(MBB, MBBI, TII.get(LISInstr), TmpReg) |
