[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLocal.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 22 13:09:01 PST 2004
Changes in directory llvm/lib/CodeGen:
RegAllocLocal.cpp updated: 1.54 -> 1.55
---
Log message:
Fix a bug where we were implicitly assuming that there would be at least
one terminator instruction in each basic block.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/CodeGen/RegAllocLocal.cpp
diff -u llvm/lib/CodeGen/RegAllocLocal.cpp:1.54 llvm/lib/CodeGen/RegAllocLocal.cpp:1.55
--- llvm/lib/CodeGen/RegAllocLocal.cpp:1.54 Sat Feb 21 12:07:33 2004
+++ llvm/lib/CodeGen/RegAllocLocal.cpp Sun Feb 22 13:08:15 2004
@@ -160,7 +160,7 @@
/// the virtual register slot specified by VirtReg. It then updates the RA
/// data structures to indicate the fact that PhysReg is now available.
///
- void spillVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
+ void spillVirtReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
unsigned VirtReg, unsigned PhysReg);
/// spillPhysReg - This method spills the specified physical register into
@@ -258,7 +258,7 @@
/// virtual register slot specified by VirtReg. It then updates the RA data
/// structures to indicate the fact that PhysReg is now available.
///
-void RA::spillVirtReg(MachineBasicBlock &MBB, MachineInstr *I,
+void RA::spillVirtReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I,
unsigned VirtReg, unsigned PhysReg) {
assert(VirtReg && "Spilling a physical register is illegal!"
" Must not have appropriate kill for the register or use exists beyond"
More information about the llvm-commits
mailing list