From 2eeb085427ccc7fbb58c7c8a8c5301f5f2b9d29f Mon Sep 17 00:00:00 2001 From: bmeurer Date: Wed, 12 Apr 2017 04:27:21 -0700 Subject: [PATCH] [turbofan] Remove unused word32 truncation case for CheckFloat64Hole. BUG=chromium:684208,chromium:709753,v8:5267 R=jarin@chromium.org Review-Url: https://codereview.chromium.org/2811153003 Cr-Commit-Position: refs/heads/master@{#44608} --- src/compiler/simplified-lowering.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc index d0f952a9ec..f0fdb931a8 100644 --- a/src/compiler/simplified-lowering.cc +++ b/src/compiler/simplified-lowering.cc @@ -2700,11 +2700,7 @@ class RepresentationSelector { switch (mode) { case CheckFloat64HoleMode::kAllowReturnHole: if (truncation.IsUnused()) return VisitUnused(node); - if (truncation.IsUsedAsWord32()) { - VisitUnop(node, UseInfo::TruncatingWord32(), - MachineRepresentation::kWord32); - if (lower()) DeferReplacement(node, node->InputAt(0)); - } else if (truncation.IsUsedAsFloat64()) { + if (truncation.IsUsedAsFloat64()) { VisitUnop(node, UseInfo::TruncatingFloat64(), MachineRepresentation::kFloat64); if (lower()) DeferReplacement(node, node->InputAt(0));