[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelPattern.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri May 13 13:29:42 PDT 2005



Changes in directory llvm/lib/Target/IA64:

IA64ISelPattern.cpp updated: 1.41 -> 1.42
---
Log message:

treat TAILCALL nodes identically to CALL nodes



---
Diffs of the changes:  (+3 -1)

 IA64ISelPattern.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/IA64/IA64ISelPattern.cpp
diff -u llvm/lib/Target/IA64/IA64ISelPattern.cpp:1.41 llvm/lib/Target/IA64/IA64ISelPattern.cpp:1.42
--- llvm/lib/Target/IA64/IA64ISelPattern.cpp:1.41	Fri May 13 13:50:27 2005
+++ llvm/lib/Target/IA64/IA64ISelPattern.cpp	Fri May 13 15:29:26 2005
@@ -953,7 +953,7 @@
   unsigned &Reg = ExprMap[N];
   if (Reg) return Reg;
 
-  if (N.getOpcode() != ISD::CALL)
+  if (N.getOpcode() != ISD::CALL && N.getOpcode() != ISD::TAILCALL)
     Reg = Result = (N.getValueType() != MVT::Other) ?
       MakeReg(N.getValueType()) : 1;
   else {
@@ -2072,6 +2072,7 @@
       return Result;
   }
 
+  case ISD::TAILCALL:
   case ISD::CALL: {
       Select(N.getOperand(0));
 
@@ -2342,6 +2343,7 @@
   case ISD::ZEXTLOAD:
   case ISD::SEXTLOAD:
   case ISD::LOAD:
+  case ISD::TAILCALL:
   case ISD::CALL:
   case ISD::CopyFromReg:
   case ISD::DYNAMIC_STACKALLOC:






More information about the llvm-commits mailing list