Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Issue 2923543003: [turbofan] Properly support Number feedback for binary operators. (Closed)

Created:
3 years, 6 months ago by Benedikt Meurer
Modified:
3 years, 6 months ago
Reviewers:
Jarin
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Properly support Number feedback for binary operators. Previously Ignition would collect precise Number feedback for binary operators, but TurboFan would just ignore that and treat it the same as NumberOrOddball. That however generates a lot of unnecessary code, plus it defeats redundancy elimination if the same input is also used by compare operations, which do properly distinguish feedback Number and NumberOrOddball. This CL adds the missing bits to connect the existing functionality properly, i.e. adding the missing BinaryOperationHint and using the NumberOperationHint::kNumber in the representation selection for tagged inputs. R=jarin@chromium.org Review-Url: https://codereview.chromium.org/2923543003 Cr-Commit-Position: refs/heads/master@{#45732} Committed: https://chromium.googlesource.com/v8/v8/+/8a150262708e0dcca1ce76abc891a9be461be8d6

Patch Set 1 #

Patch Set 2 : Improve DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -51 lines) Patch
M src/compiler/effect-control-linearizer.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M src/compiler/js-operator.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M src/compiler/js-type-hint-lowering.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/js-typed-lowering.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M src/compiler/representation-change.cc View 1 3 chunks +12 lines, -19 lines 0 comments Download
M src/compiler/simplified-operator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/simplified-operator.cc View 4 chunks +52 lines, -27 lines 0 comments Download
M src/feedback-vector-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/type-hints.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/type-hints.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/compiler/deopt-numberoroddball-binop.js View 6 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
Benedikt Meurer
3 years, 6 months ago (2017-06-06 12:40:10 UTC) #1
Jarin
lgtm
3 years, 6 months ago (2017-06-06 12:49:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2923543003/1
3 years, 6 months ago (2017-06-06 12:50:26 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_verify_csa_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_verify_csa_rel_ng/builds/6966) v8_linux64_verify_csa_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 6 months ago (2017-06-06 13:20:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2923543003/20001
3 years, 6 months ago (2017-06-06 13:24:05 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 14:06:21 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/8a150262708e0dcca1ce76abc891a9be461...

Powered by Google App Engine
This is Rietveld 408576698