mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +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:
@ -492,7 +492,9 @@ MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
|
|||||||
const TargetRegisterClass *RC = MF->getSSARegMap()->getRegClass(VirtReg);
|
const TargetRegisterClass *RC = MF->getSSARegMap()->getRegClass(VirtReg);
|
||||||
unsigned PhysReg = getFreeReg(RC);
|
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 we can fold this spill into this instruction, do so now.
|
||||||
if (0) {
|
if (0) {
|
||||||
// TODO
|
// TODO
|
||||||
|
Reference in New Issue
Block a user