[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td X86RegisterInfo.cpp
Evan Cheng
evan.cheng at apple.com
Fri Sep 22 14:44:13 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86InstrInfo.td updated: 1.286 -> 1.287
X86RegisterInfo.cpp updated: 1.170 -> 1.171
---
Log message:
Delete dead code; fix 80 col violations.
---
Diffs of the changes: (+4 -14)
X86InstrInfo.td | 15 ++++-----------
X86RegisterInfo.cpp | 3 ---
2 files changed, 4 insertions(+), 14 deletions(-)
Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.286 llvm/lib/Target/X86/X86InstrInfo.td:1.287
--- llvm/lib/Target/X86/X86InstrInfo.td:1.286 Sun Sep 10 21:19:56 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Fri Sep 22 16:43:59 2006
@@ -456,22 +456,15 @@
// 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: llvm/lib/Target/X86/X86RegisterInfo.cpp
diff -u llvm/lib/Target/X86/X86RegisterInfo.cpp:1.170 llvm/lib/Target/X86/X86RegisterInfo.cpp:1.171
--- llvm/lib/Target/X86/X86RegisterInfo.cpp:1.170 Sun Sep 17 15:25:45 2006
+++ llvm/lib/Target/X86/X86RegisterInfo.cpp Fri Sep 22 16:43:59 2006
@@ -1093,9 +1093,6 @@
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);
}
}
More information about the llvm-commits
mailing list