[llvm-commits] [llvm] r55077 - /llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
Dan Gohman
gohman at apple.com
Wed Aug 20 14:10:53 PDT 2008
Author: djg
Date: Wed Aug 20 16:10:53 2008
New Revision: 55077
URL: http://llvm.org/viewvc/llvm-project?rev=55077&view=rev
Log:
Simplify the BuildMI calls even more.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=55077&r1=55076&r2=55077&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Wed Aug 20 16:10:53 2008
@@ -155,8 +155,7 @@
unsigned ResultReg = MRI.createVirtualRegister(RC);
const TargetInstrDesc &II = TII.get(MachineInstOpcode);
- MachineInstr *MI = BuildMI(MF, II, ResultReg);
- MBB->push_back(MI);
+ MachineInstr *MI = BuildMI(MBB, II, ResultReg);
return ResultReg;
}
@@ -166,8 +165,7 @@
unsigned ResultReg = MRI.createVirtualRegister(RC);
const TargetInstrDesc &II = TII.get(MachineInstOpcode);
- MachineInstr *MI = BuildMI(MF, II, ResultReg).addReg(Op0);
- MBB->push_back(MI);
+ MachineInstr *MI = BuildMI(MBB, II, ResultReg).addReg(Op0);
return ResultReg;
}
@@ -177,7 +175,6 @@
unsigned ResultReg = MRI.createVirtualRegister(RC);
const TargetInstrDesc &II = TII.get(MachineInstOpcode);
- MachineInstr *MI = BuildMI(MF, II, ResultReg).addReg(Op0).addReg(Op1);
- MBB->push_back(MI);
+ MachineInstr *MI = BuildMI(MBB, II, ResultReg).addReg(Op0).addReg(Op1);
return ResultReg;
}
More information about the llvm-commits
mailing list