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

Issue 2347573002: [turbofan] Reduce some Float64 division to multiplication (Closed)

Created:
4 years, 3 months ago by martyn.capewell
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Reduce some Float64 division to multiplication For denominators that are powers of two, replace Float64 division with multiplication by the reciprocal. Additionally, replace division by -1 with negation, and multiplication by two with addition. BUG= Committed: https://crrev.com/5ae2d0e58abd54bc51421bf7cd129d08f72a2346 Cr-Commit-Position: refs/heads/master@{#39478}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Move power of two tests to matcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -0 lines) Patch
M src/compiler/machine-operator-reducer.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M src/compiler/node-matchers.h View 1 2 chunks +12 lines, -0 lines 0 comments Download
M test/unittests/compiler/machine-operator-reducer-unittest.cc View 1 chunk +42 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.h View 1 chunk +4 lines, -0 lines 0 comments Download
M test/unittests/compiler/node-test-utils.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
martyn.capewell
4 years, 3 months ago (2016-09-15 13:03:08 UTC) #2
Benedikt Meurer
https://codereview.chromium.org/2347573002/diff/1/src/compiler/machine-operator-reducer.cc File src/compiler/machine-operator-reducer.cc (right): https://codereview.chromium.org/2347573002/diff/1/src/compiler/machine-operator-reducer.cc#newcode415 src/compiler/machine-operator-reducer.cc:415: if (m.right().Is(2)) { // x * 2.0 => x ...
4 years, 3 months ago (2016-09-15 17:20:52 UTC) #3
martyn.capewell
https://codereview.chromium.org/2347573002/diff/1/src/compiler/machine-operator-reducer.cc File src/compiler/machine-operator-reducer.cc (right): https://codereview.chromium.org/2347573002/diff/1/src/compiler/machine-operator-reducer.cc#newcode446 src/compiler/machine-operator-reducer.cc:446: Double k = Double(m.right().Value()); On 2016/09/15 17:20:52, Benedikt Meurer ...
4 years, 3 months ago (2016-09-15 17:41:20 UTC) #4
Benedikt Meurer
https://codereview.chromium.org/2347573002/diff/1/src/compiler/machine-operator-reducer.cc File src/compiler/machine-operator-reducer.cc (right): https://codereview.chromium.org/2347573002/diff/1/src/compiler/machine-operator-reducer.cc#newcode446 src/compiler/machine-operator-reducer.cc:446: Double k = Double(m.right().Value()); Aye, thanks. Please add a ...
4 years, 3 months ago (2016-09-15 18:20:05 UTC) #5
martyn.capewell
4 years, 3 months ago (2016-09-16 17:15:45 UTC) #6
Benedikt Meurer
lgtm
4 years, 3 months ago (2016-09-16 17:19:28 UTC) #7
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/2347573002/20001
4 years, 3 months ago (2016-09-16 17:22:00 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-16 17:55:09 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 17:55:37 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5ae2d0e58abd54bc51421bf7cd129d08f72a2346
Cr-Commit-Position: refs/heads/master@{#39478}

Powered by Google App Engine
This is Rietveld 408576698