diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-03-07 17:13:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 17:13:02 -0800 |
commit | d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef (patch) | |
tree | c005e77373453477401b35ef3631de59704a053d /test/wasm2js/select.2asm.js | |
parent | 1a5b410701542413f497b3030c0b87f3600dc1bc (diff) | |
download | binaryen-d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef.tar.gz binaryen-d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef.tar.bz2 binaryen-d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef.zip |
Optimize away sets of the same local (#1940)
Diffstat (limited to 'test/wasm2js/select.2asm.js')
-rw-r--r-- | test/wasm2js/select.2asm.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/wasm2js/select.2asm.js b/test/wasm2js/select.2asm.js index 672a7fe6c..d0e6f8fdd 100644 --- a/test/wasm2js/select.2asm.js +++ b/test/wasm2js/select.2asm.js @@ -35,15 +35,13 @@ function asmFunc(global, env, buffer) { rhs = rhs | 0; rhs$hi = rhs$hi | 0; cond = cond | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0; + var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$2 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0; i64toi32_i32$0 = lhs$hi; i64toi32_i32$0 = rhs$hi; i64toi32_i32$4 = cond; i64toi32_i32$0 = lhs$hi; i64toi32_i32$3 = (wasm2js_i32$0 = lhs, wasm2js_i32$1 = rhs, wasm2js_i32$2 = i64toi32_i32$4, wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1); i64toi32_i32$2 = (wasm2js_i32$0 = i64toi32_i32$0, wasm2js_i32$1 = rhs$hi, wasm2js_i32$2 = i64toi32_i32$4, wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1); - i64toi32_i32$2 = i64toi32_i32$2; - i64toi32_i32$3 = i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; return i64toi32_i32$3 | 0; } |