diff options
author | Sam Clegg <sbc@chromium.org> | 2020-04-10 01:01:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-09 22:01:23 -0700 |
commit | 6a51af5d858b6d3378749d17065c44cf50b62a26 (patch) | |
tree | 20dfbc05715519ff75355143c851b6c2e5fb3d81 /test/wasm2js/global_i64.2asm.js.opt | |
parent | 1b56c2b341e838656adca9a7101d824ed757d6ad (diff) | |
download | binaryen-6a51af5d858b6d3378749d17065c44cf50b62a26.tar.gz binaryen-6a51af5d858b6d3378749d17065c44cf50b62a26.tar.bz2 binaryen-6a51af5d858b6d3378749d17065c44cf50b62a26.zip |
Remove writes to globals that are never written to (#2741)
Since the global is never read, we know that any write operation
will be unobservable.
Diffstat (limited to 'test/wasm2js/global_i64.2asm.js.opt')
-rw-r--r-- | test/wasm2js/global_i64.2asm.js.opt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/wasm2js/global_i64.2asm.js.opt b/test/wasm2js/global_i64.2asm.js.opt index f4bbd539f..d57e44121 100644 --- a/test/wasm2js/global_i64.2asm.js.opt +++ b/test/wasm2js/global_i64.2asm.js.opt @@ -20,11 +20,8 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - var f = -1412567121; - var f$hi = 305419896; function $1() { - f = 1432778632; - f$hi = 287454020; + } var FUNCTION_TABLE = []; |