Remove unused patterns.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 20 May 2006 01:40:16 +0000 (01:40 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 20 May 2006 01:40:16 +0000 (01:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28417 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 3cf36a5394bc68cb0502736d9fdfe692aea72dbc..719d1e7d7130507ecf235aac01c49fdbf24227c3 100644 (file)
@@ -834,7 +834,8 @@ void X86DAGToDAGISel::Select(SDOperand &Result, SDOperand N) {
       }
     }
 
-    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 80327f7fcd4e8e4811ddd883d20f1b1f0480275e..de1c3a1ff494e5eb97d49d0a10f7b8ae5ee9f154 100644 (file)
@@ -75,7 +75,7 @@ def X86callseq_end :
 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 @@ let isCall = 1, noResults = 1 in
                       []>;
     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<(store (i32 (X86Wrapper texternalsym:$src)), addr:$dst),
 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),