mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
don't emit 'add %o6, 0, %o6' instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24857 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb0966693b
commit
43875e63f3
@ -77,11 +77,12 @@ void SparcV8RegisterInfo::
|
||||
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator I) const {
|
||||
MachineInstr &MI = *I;
|
||||
int size = MI.getOperand (0).getImmedValue ();
|
||||
if (MI.getOpcode () == V8::ADJCALLSTACKDOWN)
|
||||
size = -size;
|
||||
BuildMI (MBB, I, V8::ADDri, 2, V8::O6).addReg (V8::O6).addSImm (size);
|
||||
MBB.erase (I);
|
||||
int Size = MI.getOperand(0).getImmedValue();
|
||||
if (MI.getOpcode() == V8::ADJCALLSTACKDOWN)
|
||||
Size = -Size;
|
||||
if (Size)
|
||||
BuildMI(MBB, I, V8::ADDri, 2, V8::O6).addReg(V8::O6).addSImm(Size);
|
||||
MBB.erase(I);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -77,11 +77,12 @@ void SparcV8RegisterInfo::
|
||||
eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::iterator I) const {
|
||||
MachineInstr &MI = *I;
|
||||
int size = MI.getOperand (0).getImmedValue ();
|
||||
if (MI.getOpcode () == V8::ADJCALLSTACKDOWN)
|
||||
size = -size;
|
||||
BuildMI (MBB, I, V8::ADDri, 2, V8::O6).addReg (V8::O6).addSImm (size);
|
||||
MBB.erase (I);
|
||||
int Size = MI.getOperand(0).getImmedValue();
|
||||
if (MI.getOpcode() == V8::ADJCALLSTACKDOWN)
|
||||
Size = -Size;
|
||||
if (Size)
|
||||
BuildMI(MBB, I, V8::ADDri, 2, V8::O6).addReg(V8::O6).addSImm(Size);
|
||||
MBB.erase(I);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user