Delete dead code; fix 80 col violations.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 22 Sep 2006 21:43:59 +0000 (21:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 22 Sep 2006 21:43:59 +0000 (21:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30583 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td
lib/Target/X86/X86RegisterInfo.cpp

index 4bf02b6ac42cf459f48b384022a95c403cb0d9ef..6798ad85b539c2078b72fcde43c61591d98749cf 100644 (file)
@@ -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...
 //
index bfc99233e25871ad4931847e02e7f33324bfa525..82190bcc16f56250df0b95b341e56de2ceab8dd1 100644 (file)
@@ -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);
         }
       }