diff options
author | Alon Zakai <azakai@google.com> | 2019-05-03 13:47:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 13:47:49 -0700 |
commit | 415e8b37c2e570117b17394d4910ca57fa2d11d8 (patch) | |
tree | ce7ad2486facf0c2ae29e48075e7e77b3cf1821c /test/wasm2js/nested-selects.2asm.js | |
parent | 909ac3410093c0b35b3181abcd44b9fb9ceb4781 (diff) | |
download | binaryen-415e8b37c2e570117b17394d4910ca57fa2d11d8.tar.gz binaryen-415e8b37c2e570117b17394d4910ca57fa2d11d8.tar.bz2 binaryen-415e8b37c2e570117b17394d4910ca57fa2d11d8.zip |
wasm2js: optimize loads (#2085)
When loading a boolean, prefer the signed heap (which is more commonly used, and may be faster).
We never use HEAPU32 (HEAP32 is always enough), just remove it.
Diffstat (limited to 'test/wasm2js/nested-selects.2asm.js')
-rw-r--r-- | test/wasm2js/nested-selects.2asm.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/wasm2js/nested-selects.2asm.js b/test/wasm2js/nested-selects.2asm.js index 129ea99c9..885f79b3e 100644 --- a/test/wasm2js/nested-selects.2asm.js +++ b/test/wasm2js/nested-selects.2asm.js @@ -6,7 +6,6 @@ function asmFunc(global, env, buffer) { var HEAP32 = new global.Int32Array(buffer); var HEAPU8 = new global.Uint8Array(buffer); var HEAPU16 = new global.Uint16Array(buffer); - var HEAPU32 = new global.Uint32Array(buffer); var HEAPF32 = new global.Float32Array(buffer); var HEAPF64 = new global.Float64Array(buffer); var Math_imul = global.Math.imul; |