aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaISelPattern.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-13 20:29:26 +0000
committerChris Lattner <sabre@nondot.org>2005-05-13 20:29:26 +0000
commitb5d8e6ece62b16be441d1a13609878eefa7908b9 (patch)
tree53fd0f5320b7bd79bd9d068e4c41e8300d6a28e4 /lib/Target/Alpha/AlphaISelPattern.cpp
parent2e7714ad2be1d5bac86cdb6518854bcad89f3a0e (diff)
treat TAILCALL nodes identically to CALL nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r--lib/Target/Alpha/AlphaISelPattern.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp
index 28930cefb4..d7dab5d0a5 100644
--- a/lib/Target/Alpha/AlphaISelPattern.cpp
+++ b/lib/Target/Alpha/AlphaISelPattern.cpp
@@ -1193,7 +1193,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
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 @@ unsigned ISel::SelectExpr(SDOperand N) {
(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 @@ unsigned ISel::SelectExpr(SDOperand N) {
.addGlobalAddress(cast<GlobalAddressSDNode>(N)->getGlobal());
return Result;
+ case ISD::TAILCALL:
case ISD::CALL:
{
Select(N.getOperand(0));
@@ -2242,6 +2243,7 @@ void ISel::Select(SDOperand N) {
case ISD::ZEXTLOAD:
case ISD::LOAD:
case ISD::CopyFromReg:
+ case ISD::TAILCALL:
case ISD::CALL:
case ISD::DYNAMIC_STACKALLOC:
ExprMap.erase(N);