Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index ac617d612d706a06391e12c2ac59ae3a12db8536..bcb5c775e655ecac7efcd79250271522abcafd21 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -2444,16 +2444,9 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source, |
// XMM register-register swap. |
XMMRegister src = g.ToDoubleRegister(source); |
XMMRegister dst = g.ToDoubleRegister(destination); |
- MachineRepresentation rep = LocationOperand::cast(source)->representation(); |
- if (rep != MachineRepresentation::kSimd128) { |
- __ Movapd(kScratchDoubleReg, src); |
- __ Movapd(src, dst); |
- __ Movapd(dst, kScratchDoubleReg); |
- } else { |
- __ Movups(kScratchDoubleReg, src); |
- __ Movups(src, dst); |
- __ Movups(dst, kScratchDoubleReg); |
- } |
+ __ Movapd(kScratchDoubleReg, src); |
+ __ Movapd(src, dst); |
+ __ Movapd(dst, kScratchDoubleReg); |
} else if (source->IsFPRegister() && destination->IsFPStackSlot()) { |
// XMM register-memory swap. |
XMMRegister src = g.ToDoubleRegister(source); |