diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-05-13 20:29:26 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-05-13 20:29:26 +0000 |
| commit | 8abab9b0c76cf6fa0523e43edd5e2e3f830ce56c (patch) | |
| tree | df2b4f8dbe49ece0c541dc7d10e0aa7ef089000e /llvm/lib/Target/Alpha/AlphaISelPattern.cpp | |
| parent | f27e31d690f2f1173e0d502ecb943d96e90b5ca3 (diff) | |
| download | bcm5719-llvm-8abab9b0c76cf6fa0523e43edd5e2e3f830ce56c.tar.gz bcm5719-llvm-8abab9b0c76cf6fa0523e43edd5e2e3f830ce56c.zip | |
treat TAILCALL nodes identically to CALL nodes
llvm-svn: 21977
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelPattern.cpp')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelPattern.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp index 28930cefb43..d7dab5d0a5c 100644 --- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/llvm/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); |

