mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Fix a bug where we were implicitly assuming that there would be at least
one terminator instruction in each basic block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11714 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ca04097ad
commit
688c8252d2
@ -160,7 +160,7 @@ namespace {
|
|||||||
/// the virtual register slot specified by VirtReg. It then updates the RA
|
/// the virtual register slot specified by VirtReg. It then updates the RA
|
||||||
/// data structures to indicate the fact that PhysReg is now available.
|
/// 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);
|
unsigned VirtReg, unsigned PhysReg);
|
||||||
|
|
||||||
/// spillPhysReg - This method spills the specified physical register into
|
/// spillPhysReg - This method spills the specified physical register into
|
||||||
@ -258,7 +258,7 @@ void RA::removePhysReg(unsigned PhysReg) {
|
|||||||
/// virtual register slot specified by VirtReg. It then updates the RA data
|
/// virtual register slot specified by VirtReg. It then updates the RA data
|
||||||
/// structures to indicate the fact that PhysReg is now available.
|
/// 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) {
|
unsigned VirtReg, unsigned PhysReg) {
|
||||||
assert(VirtReg && "Spilling a physical register is illegal!"
|
assert(VirtReg && "Spilling a physical register is illegal!"
|
||||||
" Must not have appropriate kill for the register or use exists beyond"
|
" Must not have appropriate kill for the register or use exists beyond"
|
||||||
|
Loading…
Reference in New Issue
Block a user