mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Fix a bug in my previous refactoring change... arg!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c4601bf2f3
commit
cdee28724e
@ -492,7 +492,9 @@ MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
|
||||
const TargetRegisterClass *RC = MF->getSSARegMap()->getRegClass(VirtReg);
|
||||
unsigned PhysReg = getFreeReg(RC);
|
||||
|
||||
if (PhysReg == 0) { // No registers available...
|
||||
if (PhysReg) { // PhysReg available!
|
||||
PhysReg = getReg(MBB, MI, VirtReg);
|
||||
} else { // No registers available...
|
||||
/// If we can fold this spill into this instruction, do so now.
|
||||
if (0) {
|
||||
// TODO
|
||||
|
Loading…
x
Reference in New Issue
Block a user