Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index ffde311da1aeff6d19d69ee80789924f76ff673b..7aaeb69eaeecc6bf959b67219a041a03839490a6 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -1307,17 +1307,6 @@ void InstructionSelector::VisitFloat32Add(Node* node) { |
void InstructionSelector::VisitFloat32Sub(Node* node) { |
- X64OperandGenerator g(this); |
- Float32BinopMatcher m(node); |
- if (m.left().IsMinusZero()) { |
- VisitFloatUnop(this, node, m.right().node(), kAVXFloat32Neg, |
- kSSEFloat32Neg); |
- return; |
- } |
- VisitFloatBinop(this, node, kAVXFloat32Sub, kSSEFloat32Sub); |
-} |
- |
-void InstructionSelector::VisitFloat32SubPreserveNan(Node* node) { |
VisitFloatBinop(this, node, kAVXFloat32Sub, kSSEFloat32Sub); |
} |
@@ -1347,29 +1336,6 @@ void InstructionSelector::VisitFloat64Add(Node* node) { |
void InstructionSelector::VisitFloat64Sub(Node* node) { |
- X64OperandGenerator g(this); |
- Float64BinopMatcher m(node); |
- if (m.left().IsMinusZero()) { |
- if (m.right().IsFloat64RoundDown() && |
- CanCover(m.node(), m.right().node())) { |
- if (m.right().InputAt(0)->opcode() == IrOpcode::kFloat64Sub && |
- CanCover(m.right().node(), m.right().InputAt(0))) { |
- Float64BinopMatcher mright0(m.right().InputAt(0)); |
- if (mright0.left().IsMinusZero()) { |
- Emit(kSSEFloat64Round | MiscField::encode(kRoundUp), |
- g.DefineAsRegister(node), g.UseRegister(mright0.right().node())); |
- return; |
- } |
- } |
- } |
- VisitFloatUnop(this, node, m.right().node(), kAVXFloat64Neg, |
- kSSEFloat64Neg); |
- return; |
- } |
- VisitFloatBinop(this, node, kAVXFloat64Sub, kSSEFloat64Sub); |
-} |
- |
-void InstructionSelector::VisitFloat64SubPreserveNan(Node* node) { |
VisitFloatBinop(this, node, kAVXFloat64Sub, kSSEFloat64Sub); |
} |