From 4a1ae109528f52a9e8d002321c448dcd5366763a Mon Sep 17 00:00:00 2001 From: "zhengxing.li" Date: Thu, 11 Aug 2016 01:55:55 -0700 Subject: [PATCH] X87: [turbofan] Remove the FloatXXSubPreserveNan operators. port f8938e50964e7b83818a0fff7fc0f2b065f8bf49 (r38437) original commit message: This CL changes the semantics of FloatXXSub to match the semantics of the semantics of FloatXXSubPreserveNan. Therefore there is no need anymore for the FloatXXSubPreserveNan operators. The optimizations in VisitFloatXXSub which are removed in this CL have already been moved to machine-operator-reducer.cc in https://codereview.chromium.org/2226663002 BUG= Review-Url: https://codereview.chromium.org/2236153002 Cr-Commit-Position: refs/heads/master@{#38571} --- src/compiler/x87/instruction-selector-x87.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc index ec91b5a25a..5318c899c8 100644 --- a/src/compiler/x87/instruction-selector-x87.cc +++ b/src/compiler/x87/instruction-selector-x87.cc @@ -917,13 +917,6 @@ void InstructionSelector::VisitFloat32Sub(Node* node) { Emit(kX87Float32Sub, g.DefineAsFixed(node, stX_0), 0, nullptr); } -void InstructionSelector::VisitFloat32SubPreserveNan(Node* node) { - X87OperandGenerator g(this); - Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0))); - Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(1))); - Emit(kX87Float32Sub, g.DefineAsFixed(node, stX_0), 0, nullptr); -} - void InstructionSelector::VisitFloat64Sub(Node* node) { X87OperandGenerator g(this); Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); @@ -931,14 +924,6 @@ void InstructionSelector::VisitFloat64Sub(Node* node) { Emit(kX87Float64Sub, g.DefineAsFixed(node, stX_0), 0, nullptr); } -void InstructionSelector::VisitFloat64SubPreserveNan(Node* node) { - X87OperandGenerator g(this); - Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(0))); - Emit(kX87PushFloat64, g.NoOutput(), g.Use(node->InputAt(1))); - Emit(kX87Float64Sub, g.DefineAsFixed(node, stX_0), 0, nullptr); -} - - void InstructionSelector::VisitFloat32Mul(Node* node) { X87OperandGenerator g(this); Emit(kX87PushFloat32, g.NoOutput(), g.Use(node->InputAt(0)));