diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index 4bf02b6ac42..6798ad85b53 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -456,22 +456,15 @@ let isCall = 1, noResults = 1 in // Tail call stuff. let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1, noResults = 1 in - def TAILJMPd : IBr<0xE9, (ops i32imm:$dst), "jmp ${dst:call} # TAIL CALL", []>; + def TAILJMPd : IBr<0xE9, (ops i32imm:$dst), "jmp ${dst:call} # TAIL CALL", + []>; let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1, noResults = 1 in - def TAILJMPr : I<0xFF, MRM4r, (ops GR32:$dst), "jmp {*}$dst # TAIL CALL", []>; + def TAILJMPr : I<0xFF, MRM4r, (ops GR32:$dst), "jmp {*}$dst # TAIL CALL", + []>; let isCall = 1, isTerminator = 1, isReturn = 1, isBarrier = 1, noResults = 1 in def TAILJMPm : I<0xFF, MRM4m, (ops i32mem:$dst), "jmp {*}$dst # TAIL CALL", []>; -// ADJSTACKPTRri - This is a standard ADD32ri instruction, identical in every -// way, except that it is marked as being a terminator. This causes the epilog -// inserter to insert reloads of callee saved registers BEFORE this. We need -// this until we have a more accurate way of tracking where the stack pointer is -// within a function. -let isTerminator = 1, isTwoAddress = 1 in - def ADJSTACKPTRri : Ii32<0x81, MRM0r, (ops GR32:$dst, GR32:$src1, i32imm:$src2), - "add{l} {$src2, $dst|$dst, $src2}", []>; - //===----------------------------------------------------------------------===// // Miscellaneous Instructions... // diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index bfc99233e25..82190bcc16f 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -1093,9 +1093,6 @@ void X86RegisterInfo::emitEpilogue(MachineFunction &MF, PI->getOperand(0).getReg() == StackPtr) { NumBytes -= PI->getOperand(2).getImmedValue(); MBB.erase(PI); - } else if (PI->getOpcode() == X86::ADJSTACKPTRri) { - NumBytes += PI->getOperand(1).getImmedValue(); - MBB.erase(PI); } }