[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 13 13:29:42 PDT 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.112 -> 1.113
---
Log message:
treat TAILCALL nodes identically to CALL nodes
---
Diffs of the changes: (+4 -2)
AlphaISelPattern.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.112 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.113
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.112 Fri May 13 13:50:25 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Fri May 13 15:29:25 2005
@@ -1193,7 +1193,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()) : notIn;
else {
@@ -1217,7 +1217,7 @@
(N.getValue(0).getValueType() == MVT::f32 ||
N.getValue(0).getValueType() == MVT::f64)
))
- && opcode != ISD::CALL
+ && opcode != ISD::CALL && opcode != ISD::TAILCALL
)
return SelectExprFP(N, Result);
@@ -1376,6 +1376,7 @@
.addGlobalAddress(cast<GlobalAddressSDNode>(N)->getGlobal());
return Result;
+ case ISD::TAILCALL:
case ISD::CALL:
{
Select(N.getOperand(0));
@@ -2242,6 +2243,7 @@
case ISD::ZEXTLOAD:
case ISD::LOAD:
case ISD::CopyFromReg:
+ case ISD::TAILCALL:
case ISD::CALL:
case ISD::DYNAMIC_STACKALLOC:
ExprMap.erase(N);
More information about the llvm-commits
mailing list