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

Issue 2666903002: [wasm] Do float constant folding if the origin is not wasm (Closed)

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

Description

[wasm] Do float constant folding if the origin is not wasm I removed some constant folding optimizations for float instruction in https://codereview.chromium.org/2647353007 because they were incorrect if the input was a signalling NaN. Removing these optimizations, however had an unexpectedly big impact on asm.js performance. With this CL I restore the optimizations again when the source origin is not wasm. In JavaScript signalling NaNs are not observable and therefore the optimizations are correct. R=titzer@chromium.org BUG=chromium:686654 Review-Url: https://codereview.chromium.org/2666903002 Cr-Commit-Position: refs/heads/master@{#42850} Committed: https://chromium.googlesource.com/v8/v8/+/3b2301650eba47706f50104ecd13517dbb20bc9f

Patch Set 1 #

Patch Set 2 : I forgot to add the changes to cctests. #

Total comments: 1

Patch Set 3 : Rename flag #

Patch Set 4 : Allow signalling NaNs by default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -19 lines) Patch
M src/compiler/machine-operator-reducer.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M src/compiler/machine-operator-reducer.cc View 1 2 5 chunks +15 lines, -6 lines 0 comments Download
M src/compiler/pipeline.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/pipeline.cc View 1 2 4 chunks +11 lines, -6 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/wasm/wasm-module.h View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (20 generated)
ahaas
3 years, 10 months ago (2017-01-31 10:46:57 UTC) #1
titzer
https://codereview.chromium.org/2666903002/diff/20001/src/compiler/machine-operator-reducer.h File src/compiler/machine-operator-reducer.h (right): https://codereview.chromium.org/2666903002/diff/20001/src/compiler/machine-operator-reducer.h#newcode27 src/compiler/machine-operator-reducer.h:27: explicit MachineOperatorReducer(JSGraph* jsgraph, bool wasm_origin = false); Can we ...
3 years, 10 months ago (2017-01-31 17:25:49 UTC) #10
titzer
On 2017/01/31 17:25:49, titzer wrote: > https://codereview.chromium.org/2666903002/diff/20001/src/compiler/machine-operator-reducer.h > File src/compiler/machine-operator-reducer.h (right): > > https://codereview.chromium.org/2666903002/diff/20001/src/compiler/machine-operator-reducer.h#newcode27 > ...
3 years, 10 months ago (2017-01-31 19:18:05 UTC) #11
ahaas
On 2017/01/31 at 19:18:05, titzer wrote: > On 2017/01/31 17:25:49, titzer wrote: > > https://codereview.chromium.org/2666903002/diff/20001/src/compiler/machine-operator-reducer.h ...
3 years, 10 months ago (2017-01-31 19:26:48 UTC) #14
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/2666903002/60001
3 years, 10 months ago (2017-02-01 11:49:17 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 11:52:05 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/3b2301650eba47706f50104ecd13517dbb2...

Powered by Google App Engine
This is Rietveld 408576698