Index: src/compiler/s390/instruction-selector-s390.cc |
diff --git a/src/compiler/s390/instruction-selector-s390.cc b/src/compiler/s390/instruction-selector-s390.cc |
index 1f3a621a759017fd7a5690a1d81cf867a8b7fecc..2fd3f78f593ea373e8018e06cbf3eb95ff822f99 100644 |
--- a/src/compiler/s390/instruction-selector-s390.cc |
+++ b/src/compiler/s390/instruction-selector-s390.cc |
@@ -1132,47 +1132,11 @@ void InstructionSelector::VisitFloat64Add(Node* node) { |
} |
void InstructionSelector::VisitFloat32Sub(Node* node) { |
- S390OperandGenerator g(this); |
- Float32BinopMatcher m(node); |
- if (m.left().IsMinusZero()) { |
- Emit(kS390_NegDouble, g.DefineAsRegister(node), |
- g.UseRegister(m.right().node())); |
- return; |
- } |
- VisitRRR(this, kS390_SubFloat, node); |
-} |
- |
-void InstructionSelector::VisitFloat32SubPreserveNan(Node* node) { |
- S390OperandGenerator g(this); |
VisitRRR(this, kS390_SubFloat, node); |
} |
void InstructionSelector::VisitFloat64Sub(Node* node) { |
// TODO(mbrandy): detect multiply-subtract |
- S390OperandGenerator 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()) { |
- // -floor(-x) = ceil(x) |
- Emit(kS390_CeilDouble, g.DefineAsRegister(node), |
- g.UseRegister(mright0.right().node())); |
- return; |
- } |
- } |
- } |
- Emit(kS390_NegDouble, g.DefineAsRegister(node), |
- g.UseRegister(m.right().node())); |
- return; |
- } |
- VisitRRR(this, kS390_SubDouble, node); |
-} |
- |
-void InstructionSelector::VisitFloat64SubPreserveNan(Node* node) { |
VisitRRR(this, kS390_SubDouble, node); |
} |