| Index: src/compiler/linkage.cc
|
| diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc
|
| index 9f89e3d0ba652c49a796faf6aebac8fdda6e360e..cb9aeec085dd369f00ff68de914d2b744e8f25ba 100644
|
| --- a/src/compiler/linkage.cc
|
| +++ b/src/compiler/linkage.cc
|
| @@ -91,10 +91,7 @@ bool CallDescriptor::HasSameReturnLocationsAs(
|
|
|
| bool CallDescriptor::CanTailCall(const Node* node,
|
| int* stack_param_delta) const {
|
| - // TODO(danno): TF only current supports tail calls where the number of stack
|
| - // parameters of the callee is the same or fewer of the caller.
|
| CallDescriptor const* other = OpParameter<CallDescriptor const*>(node);
|
| - if (!HasSameReturnLocationsAs(other)) return false;
|
| size_t current_input = 0;
|
| size_t other_input = 0;
|
| *stack_param_delta = 0;
|
| @@ -118,7 +115,7 @@ bool CallDescriptor::CanTailCall(const Node* node,
|
| ++current_input;
|
| ++other_input;
|
| }
|
| - return *stack_param_delta <= 0;
|
| + return HasSameReturnLocationsAs(OpParameter<CallDescriptor const*>(node));
|
| }
|
|
|
|
|
|
|