forked from OSchip/llvm-project
Fix a bug in my previous refactoring change... arg!
llvm-svn: 11535
This commit is contained in:
parent
6e540af8f7
commit
d1289d0fcd
|
@ -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…
Reference in New Issue