[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp X86InstrInfo.td
Evan Cheng
evan.cheng at apple.com
Fri May 19 18:40:28 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86ISelDAGToDAG.cpp updated: 1.62 -> 1.63
X86InstrInfo.td updated: 1.270 -> 1.271
---
Log message:
Remove unused patterns.
---
Diffs of the changes: (+4 -7)
X86ISelDAGToDAG.cpp | 3 ++-
X86InstrInfo.td | 8 ++------
2 files changed, 4 insertions(+), 7 deletions(-)
Index: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
diff -u llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.62 llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.63
--- llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:1.62 Fri May 19 20:36:52 2006
+++ llvm/lib/Target/X86/X86ISelDAGToDAG.cpp Fri May 19 20:40:16 2006
@@ -834,7 +834,8 @@
}
}
- case X86ISD::CALL: {
+ case X86ISD::CALL:
+ case X86ISD::TAILCALL: {
// Handle indirect call which folds a load here. This never matches by
// the TableGen generated code since the load's chain result is read by
// the callseq_start node.
Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.270 llvm/lib/Target/X86/X86InstrInfo.td:1.271
--- llvm/lib/Target/X86/X86InstrInfo.td:1.270 Fri May 19 13:40:54 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td Fri May 19 20:40:16 2006
@@ -75,7 +75,7 @@
def X86call : SDNode<"X86ISD::CALL", SDT_X86Call,
[SDNPHasChain, SDNPOutFlag, SDNPOptInFlag]>;
-def X86tailcall : SDNode<"X86ISD::TAILCALL", SDT_X86Call,
+def X86tailcall: SDNode<"X86ISD::TAILCALL", SDT_X86Call,
[SDNPHasChain, SDNPOutFlag, SDNPOptInFlag]>;
def X86rep_stos: SDNode<"X86ISD::REP_STOS", SDTX86RepStr,
@@ -442,8 +442,7 @@
[]>;
def CALL32r : I<0xFF, MRM2r, (ops GR32:$dst), "call {*}$dst",
[(X86call GR32:$dst)]>;
- def CALL32m : I<0xFF, MRM2m, (ops i32mem:$dst), "call {*}$dst",
- [(X86call (loadiPTR addr:$dst))]>;
+ def CALL32m : I<0xFF, MRM2m, (ops i32mem:$dst), "call {*}$dst", []>;
}
// Tail call stuff.
@@ -2370,9 +2369,6 @@
def : Pat<(X86tailcall GR32:$dst),
(CALL32r GR32:$dst)>;
-def : Pat<(X86tailcall (loadiPTR addr:$dst)),
- (CALL32m addr:$dst)>;
-
def : Pat<(X86tailcall tglobaladdr:$dst),
(CALLpcrel32 tglobaladdr:$dst)>;
def : Pat<(X86tailcall texternalsym:$dst),
More information about the llvm-commits
mailing list