mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
This fixes Benchmarks/Prolangs-C/unix-smail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
45d5788123
commit
cc406328bf
@ -596,6 +596,8 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
|||||||
if (MO.isRegister() && MO.isDef() && MO.getReg() &&
|
if (MO.isRegister() && MO.isDef() && MO.getReg() &&
|
||||||
MRegisterInfo::isPhysicalRegister(MO.getReg())) {
|
MRegisterInfo::isPhysicalRegister(MO.getReg())) {
|
||||||
unsigned Reg = MO.getReg();
|
unsigned Reg = MO.getReg();
|
||||||
|
if (PhysRegsUsed[Reg] == -2) continue; // Something like ESP.
|
||||||
|
|
||||||
PhysRegsEverUsed[Reg] = true;
|
PhysRegsEverUsed[Reg] = true;
|
||||||
spillPhysReg(MBB, MI, Reg, true); // Spill any existing value in the reg
|
spillPhysReg(MBB, MI, Reg, true); // Spill any existing value in the reg
|
||||||
PhysRegsUsed[Reg] = 0; // It is free and reserved now
|
PhysRegsUsed[Reg] = 0; // It is free and reserved now
|
||||||
|
Loading…
x
Reference in New Issue
Block a user