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 | b5d8e6ece62b16be441d1a13609878eefa7908b9 (patch) | |
tree | 53fd0f5320b7bd79bd9d068e4c41e8300d6a28e4 /lib/Target/PowerPC/PPC64ISelPattern.cpp | |
parent | 2e7714ad2be1d5bac86cdb6518854bcad89f3a0e (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/PowerPC/PPC64ISelPattern.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPC64ISelPattern.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPC64ISelPattern.cpp b/lib/Target/PowerPC/PPC64ISelPattern.cpp index ce74c58d2e..41138cf7ef 100644 --- a/lib/Target/PowerPC/PPC64ISelPattern.cpp +++ b/lib/Target/PowerPC/PPC64ISelPattern.cpp @@ -939,6 +939,7 @@ unsigned ISel::SelectExpr(SDOperand N) { Reg = Result = (N.getValueType() != MVT::Other) ? MakeReg(N.getValueType()) : 1; break; + case ISD::TAILCALL: case ISD::CALL: // If this is a call instruction, make sure to prepare ALL of the result // values as well as the chain. @@ -1070,6 +1071,7 @@ unsigned ISel::SelectExpr(SDOperand N) { return Result; } + case ISD::TAILCALL: case ISD::CALL: { unsigned GPR_idx = 0, FPR_idx = 0; static const unsigned GPR[] = { @@ -1617,6 +1619,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); |