[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 15 12:09:01 PST 2003
Changes in directory llvm/lib/CodeGen/RegAlloc:
PhyRegAlloc.cpp updated: 1.91 -> 1.92
---
Log message:
Use buildmi not MI ctor directly
---
Diffs of the changes:
Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.91 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.92
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.91 Tue Jan 14 17:05:06 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp Wed Jan 15 12:08:07 2003
@@ -8,7 +8,7 @@
#include "llvm/CodeGen/RegAllocCommon.h"
#include "llvm/CodeGen/IGNode.h"
#include "llvm/CodeGen/PhyRegAlloc.h"
-#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineInstrAnnot.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionInfo.h"
@@ -578,8 +578,7 @@
// needs spill code inserted before or after it.
// Move it before the preceding branch.
InsertBefore(MInst, MBB, --MII);
- MachineInstr* nopI =
- new MachineInstr(TM.getInstrInfo().getNOPOpCode());
+ MachineInstr* nopI = BuildMI(TM.getInstrInfo().getNOPOpCode(),1);
SubstituteInPlace(nopI, MBB, MII+1); // replace orig with NOP
--MII; // point to MInst in new location
bumpIteratorBy = 2; // later skip the branch and the NOP!
More information about the llvm-commits
mailing list