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

Issue 2167643002: [Turbofan] Make the -0 deopt case more efficient in multiplication. (Closed)

Created:
4 years, 5 months ago by mvstanton
Modified:
4 years, 4 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Turbofan] Make the -0 deopt case more efficient in multiplication. After multiplying two integers we emit code like: if (result == 0) { if (OR_OPERATION(rhs, lhs) < 0) { DEOPT; } } This CL allows us to eliminate the OR and comparison if either rhs or lhs is a negative number, reducing the code to: if (result == 0) DEOPT; BUG= Committed: https://crrev.com/0a36b5cd2c87a9827537bc91f0d0777efeb714fd Cr-Commit-Position: refs/heads/master@{#38016}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Code comments. #

Patch Set 3 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -1 line) Patch
M src/compiler/machine-operator-reducer.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M src/compiler/node-matchers.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/compiler/math-mul.js View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M test/unittests/compiler/machine-operator-reducer-unittest.cc View 1 2 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 15 (8 generated)
mvstanton
Hi Benedikt, Here is the strength reduction operation you described. Thanks for the look! --Mike
4 years, 5 months ago (2016-07-20 12:01:27 UTC) #2
Benedikt Meurer
Nice, thanks. LGTM once comments addressed. https://codereview.chromium.org/2167643002/diff/1/src/compiler/machine-operator-reducer.cc File src/compiler/machine-operator-reducer.cc (right): https://codereview.chromium.org/2167643002/diff/1/src/compiler/machine-operator-reducer.cc#newcode268 src/compiler/machine-operator-reducer.cc:268: // This targets ...
4 years, 5 months ago (2016-07-20 17:37:44 UTC) #3
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/2167643002/20001
4 years, 5 months ago (2016-07-25 07:54:25 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/20098)
4 years, 5 months ago (2016-07-25 07:57:53 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/2167643002/40001
4 years, 5 months ago (2016-07-25 11:52:40 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-25 12:13:21 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 12:15:30 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0a36b5cd2c87a9827537bc91f0d0777efeb714fd
Cr-Commit-Position: refs/heads/master@{#38016}

Powered by Google App Engine
This is Rietveld 408576698