| Index: src/compiler/move-optimizer.cc
|
| diff --git a/src/compiler/move-optimizer.cc b/src/compiler/move-optimizer.cc
|
| index 50516c123989f63bdd6e42e639b09f0e85bae64c..075074393deaef3512ca5bf1653f8f3bf501df6a 100644
|
| --- a/src/compiler/move-optimizer.cc
|
| +++ b/src/compiler/move-optimizer.cc
|
| @@ -145,7 +145,7 @@ void MoveOptimizer::RemoveClobberedDestinations(Instruction* instruction) {
|
|
|
| // The ret instruction makes any assignment before it unnecessary, except for
|
| // the one for its input.
|
| - if (instruction->opcode() == ArchOpcode::kArchRet) {
|
| + if (instruction->IsRet() || instruction->IsTailCall()) {
|
| for (MoveOperands* move : *moves) {
|
| if (inputs.find(move->destination()) == inputs.end()) {
|
| move->Eliminate();
|
|
|