mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Move some methods out of MachineInstr into MachineOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -443,7 +443,7 @@ MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
|
||||
// and return.
|
||||
if (unsigned PR = getVirt2PhysRegMapSlot(VirtReg)) {
|
||||
MarkPhysRegRecentlyUsed(PR); // Already have this value available!
|
||||
MI->SetMachineOperandReg(OpNum, PR); // Assign the input register
|
||||
MI->getOperand(OpNum).setReg(PR); // Assign the input register
|
||||
return MI;
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ MachineInstr *RA::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
|
||||
++NumLoads; // Update statistics
|
||||
|
||||
PhysRegsEverUsed[PhysReg] = true;
|
||||
MI->SetMachineOperandReg(OpNum, PhysReg); // Assign the input register
|
||||
MI->getOperand(OpNum).setReg(PhysReg); // Assign the input register
|
||||
return MI;
|
||||
}
|
||||
|
||||
@@ -599,7 +599,7 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
||||
DestPhysReg = getReg(MBB, MI, DestVirtReg);
|
||||
PhysRegsEverUsed[DestPhysReg] = true;
|
||||
markVirtRegModified(DestVirtReg);
|
||||
MI->SetMachineOperandReg(i, DestPhysReg); // Assign the output register
|
||||
MI->getOperand(i).setReg(DestPhysReg); // Assign the output register
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user