[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat May 14 23:07:36 PDT 2005



Changes in directory llvm/lib/Target/X86:

X86ISelPattern.cpp updated: 1.137 -> 1.138
---
Log message:

don't reserve space for tailcall arg areas.  It explicitly managed.


---
Diffs of the changes:  (+4 -2)

 X86ISelPattern.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.137 llvm/lib/Target/X86/X86ISelPattern.cpp:1.138
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.137	Sun May 15 00:46:45 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp	Sun May 15 01:07:10 2005
@@ -3764,8 +3764,10 @@
   MVT::ValueType StoreVT;
   switch (Chain.getOpcode()) {
   case ISD::CALLSEQ_START:
-    // If we found the start of the call sequence, we're done.
-    return Chain;
+    // If we found the start of the call sequence, we're done.  We actually
+    // strip off the CALLSEQ_START node, to avoid generating the
+    // ADJCALLSTACKDOWN marker for the tail call.
+    return Chain.getOperand(0);
   case ISD::TokenFactor: {
     std::vector<SDOperand> Ops;
     Ops.reserve(Chain.getNumOperands());






More information about the llvm-commits mailing list