mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-13 16:03:58 +00:00
Teach reginfo how to deal with ADJSTACKPTRri, allowing us to generate:
add %ESP, 20 jmp %EDX # TAIL CALL instead of: add %ESP, -8 add %ESP, 28 jmp %EDX # TAIL CALL git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22047 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
381e88799e
commit
5fae9ccd39
@ -544,6 +544,9 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
PI->getOperand(0).getReg() == X86::ESP) {
|
||||
NumBytes -= PI->getOperand(1).getImmedValue();
|
||||
MBB.erase(PI);
|
||||
} else if (PI->getOpcode() == X86::ADJSTACKPTRri) {
|
||||
NumBytes += PI->getOperand(1).getImmedValue();
|
||||
MBB.erase(PI);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user