mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove redundant foldMemoryOperand variants and other code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -520,7 +520,9 @@ MachineInstr *RABigBlock::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI
|
||||
assignVirtToPhysReg(VirtReg, PhysReg);
|
||||
} else { // no free registers available.
|
||||
// try to fold the spill into the instruction
|
||||
if(MachineInstr* FMI = RegInfo->foldMemoryOperand(MI, OpNum, FrameIndex)) {
|
||||
SmallVector<unsigned, 2> Ops;
|
||||
Ops.push_back(OpNum);
|
||||
if(MachineInstr* FMI = RegInfo->foldMemoryOperand(MI, Ops, FrameIndex)) {
|
||||
++NumFolded;
|
||||
// Since we changed the address of MI, make sure to update live variables
|
||||
// to know that the new instruction has the properties of the old one.
|
||||
|
Reference in New Issue
Block a user