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

Issue 2647353007: [wasm] Fix constant folding with signalling NaN. (Closed)

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

Description

[wasm] Fix constant folding with signalling NaN. According to the WebAssembly spec no arithmetic operation should ever return a signalling NaN. With the constant folding in V8, however, it was possible that some arithmetic operations were elided, and if the input of the arithmetic operation was a signalling NaN, then also the result was the same signalling NaN. This CL removes some constant folding optimizations and adjusts others so that even with constant folding the result of an arithmetic operation is never a signalling NaN. R=titzer@chromium.org, rossberg@chromium.org, bmeurer@chromium.org Review-Url: https://codereview.chromium.org/2647353007 Cr-Commit-Position: refs/heads/master@{#42694} Committed: https://chromium.googlesource.com/v8/v8/+/55aed7821012bc4ffaeeea5d887587e2fc69560f

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add TODOs #

Patch Set 3 : Fixed tests. #

Patch Set 4 : Remove unused variable #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -24 lines) Patch
M src/compiler/machine-operator-reducer.cc View 1 2 5 chunks +20 lines, -16 lines 1 comment Download
M test/cctest/compiler/test-machine-operator-reducer.cc View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
A test/mjsunit/wasm/float-constant-folding.js View 1 chunk +220 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (23 generated)
ahaas
3 years, 11 months ago (2017-01-25 13:24:18 UTC) #1
Benedikt Meurer
LGTM.
3 years, 11 months ago (2017-01-25 13:25:23 UTC) #4
titzer
lgtm https://codereview.chromium.org/2647353007/diff/1/src/compiler/machine-operator-reducer.cc File src/compiler/machine-operator-reducer.cc (right): https://codereview.chromium.org/2647353007/diff/1/src/compiler/machine-operator-reducer.cc#newcode362 src/compiler/machine-operator-reducer.cc:362: if (m.right().IsNaN()) { // x - NaN => ...
3 years, 11 months ago (2017-01-25 13:28:57 UTC) #5
ahaas
On 2017/01/25 at 13:28:57, titzer wrote: > lgtm > > https://codereview.chromium.org/2647353007/diff/1/src/compiler/machine-operator-reducer.cc > File src/compiler/machine-operator-reducer.cc (right): ...
3 years, 11 months ago (2017-01-25 13:47:18 UTC) #8
ahaas
On 2017/01/25 at 13:47:18, ahaas wrote: > On 2017/01/25 at 13:28:57, titzer wrote: > > ...
3 years, 11 months ago (2017-01-25 15:01:15 UTC) #13
titzer
https://codereview.chromium.org/2647353007/diff/60001/src/compiler/machine-operator-reducer.cc File src/compiler/machine-operator-reducer.cc (right): https://codereview.chromium.org/2647353007/diff/60001/src/compiler/machine-operator-reducer.cc#newcode325 src/compiler/machine-operator-reducer.cc:325: // Do some calculation to make a signalling NaN ...
3 years, 11 months ago (2017-01-25 15:30:54 UTC) #18
ahaas
On 2017/01/25 at 15:30:54, titzer wrote: > https://codereview.chromium.org/2647353007/diff/60001/src/compiler/machine-operator-reducer.cc > File src/compiler/machine-operator-reducer.cc (right): > > https://codereview.chromium.org/2647353007/diff/60001/src/compiler/machine-operator-reducer.cc#newcode325 ...
3 years, 11 months ago (2017-01-26 11:47:02 UTC) #23
ahaas
On 2017/01/26 at 11:47:02, ahaas wrote: > On 2017/01/25 at 15:30:54, titzer wrote: > > ...
3 years, 11 months ago (2017-01-26 12:31:46 UTC) #27
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/2647353007/60001
3 years, 11 months ago (2017-01-26 12:38:03 UTC) #30
commit-bot: I haz the power
3 years, 11 months ago (2017-01-26 12:45:39 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/55aed7821012bc4ffaeeea5d887587e2fc6...

Powered by Google App Engine
This is Rietveld 408576698