Index: src/compiler/move-optimizer.cc |
diff --git a/src/compiler/move-optimizer.cc b/src/compiler/move-optimizer.cc |
index 4753d15979a99fcb0f39e59db9ab3f6a1d979938..3d29046b905c6bd987f0a6d93d21b2744c17d85c 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(); |