aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-09-22 21:43:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-09-22 21:43:59 +0000
commitf10c17f986f2986d0501046aa13a08db4886dd77 (patch)
tree34ff35c365cd1cd58fd0e2dbb8cf99fbf3119636 /lib/Target
parent75645496fa9cd73d7dd1965b055ca6b7ee7a291d (diff)
downloadexternal_llvm-f10c17f986f2986d0501046aa13a08db4886dd77.zip
external_llvm-f10c17f986f2986d0501046aa13a08db4886dd77.tar.gz
external_llvm-f10c17f986f2986d0501046aa13a08db4886dd77.tar.bz2
Delete dead code; fix 80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86InstrInfo.td15
-rw-r--r--lib/Target/X86/X86RegisterInfo.cpp3
2 files changed, 4 insertions, 14 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 4bf02b6..6798ad8 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 bfc9923..82190bc 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);
}
}