diff options
author | Max Graey <maxgraey@gmail.com> | 2020-11-10 21:41:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 11:41:22 -0800 |
commit | 0c20d9f427b63a6fdc354bb917c11f382068eaec (patch) | |
tree | 750a49a311872f566d6c5b91a29d19d5f2a2e3c1 /test/wasm2js/emscripten-grow-no.2asm.js | |
parent | 5d2c13f16af2183a5d1861828e512fe0f964990c (diff) | |
download | binaryen-0c20d9f427b63a6fdc354bb917c11f382068eaec.tar.gz binaryen-0c20d9f427b63a6fdc354bb917c11f382068eaec.tar.bz2 binaryen-0c20d9f427b63a6fdc354bb917c11f382068eaec.zip |
Canonicalize subtraction with constant on the right to addition (#3321)
Using addition in more places is better for gzip, and helps simplify the
optimizer as well.
Add a FinalOptimizer phase to do optimizations like our signed LEB tweaks, to
reduce binary size in the rare case when we do want a subtraction.
Diffstat (limited to 'test/wasm2js/emscripten-grow-no.2asm.js')
-rw-r--r-- | test/wasm2js/emscripten-grow-no.2asm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/wasm2js/emscripten-grow-no.2asm.js b/test/wasm2js/emscripten-grow-no.2asm.js index 998527287..4d6bb4c77 100644 --- a/test/wasm2js/emscripten-grow-no.2asm.js +++ b/test/wasm2js/emscripten-grow-no.2asm.js @@ -63,7 +63,7 @@ for (var base64ReverseLookup = new Uint8Array(123/*'z'+1*/), i = 25; i >= 0; --i if (j < end) uint8Array[j++] = b1 << 4 | b2 >> 2; if (j < end) uint8Array[j++] = b2 << 6 | base64ReverseLookup[b64.charCodeAt(i+3)]; } - return uint8Array; + return uint8Array; } base64DecodeToExistingUint8Array(bufferView, 1600, "YWJj"); return asmFunc(asmLibraryArg, wasmMemory.buffer) |