mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Fix a few dejagnu failures. e.g. fast-cc-merge-stack-adj.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23b3122c44
commit
2f5993bcf1
@ -933,12 +933,12 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF,
|
||||
if ((PI->getOpcode() == X86::ADD32ri ||
|
||||
PI->getOpcode() == X86::ADD32ri8) &&
|
||||
PI->getOperand(0).getReg() == X86::ESP) {
|
||||
NumBytes += PI->getOperand(1).getImmedValue();
|
||||
NumBytes += PI->getOperand(2).getImmedValue();
|
||||
MBB.erase(PI);
|
||||
} else if ((PI->getOpcode() == X86::SUB32ri ||
|
||||
PI->getOpcode() == X86::SUB32ri8) &&
|
||||
PI->getOperand(0).getReg() == X86::ESP) {
|
||||
NumBytes -= PI->getOperand(1).getImmedValue();
|
||||
NumBytes -= PI->getOperand(2).getImmedValue();
|
||||
MBB.erase(PI);
|
||||
} else if (PI->getOpcode() == X86::ADJSTACKPTRri) {
|
||||
NumBytes += PI->getOperand(1).getImmedValue();
|
||||
|
Loading…
x
Reference in New Issue
Block a user