diff options
author | Alon Zakai <azakai@google.com> | 2019-05-10 12:24:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 12:24:03 -0700 |
commit | 4b35f384fe753f06c22a04bfa1be056e92f67739 (patch) | |
tree | 5a1a9c515dbffb01bae91d113ce88e8210e91e8b /test/wasm2js/reinterpret.2asm.js.opt | |
parent | d216f8742ba0663fffb035c577a5449bbc8a33a2 (diff) | |
download | binaryen-4b35f384fe753f06c22a04bfa1be056e92f67739.tar.gz binaryen-4b35f384fe753f06c22a04bfa1be056e92f67739.tar.bz2 binaryen-4b35f384fe753f06c22a04bfa1be056e92f67739.zip |
Look through fallthrough values in precompute-propagate (#2093)
This helps quite a lot on wasm2js.
Diffstat (limited to 'test/wasm2js/reinterpret.2asm.js.opt')
-rw-r--r-- | test/wasm2js/reinterpret.2asm.js.opt | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/wasm2js/reinterpret.2asm.js.opt b/test/wasm2js/reinterpret.2asm.js.opt index 4c9856ca0..58c2057b6 100644 --- a/test/wasm2js/reinterpret.2asm.js.opt +++ b/test/wasm2js/reinterpret.2asm.js.opt @@ -67,18 +67,7 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0, $1_1) { - var $2_1 = 0, $3 = 0; - $3 = $0; - $2_1 = 32; - $0 = $2_1 & 31; - if (32 >>> 0 <= $2_1 >>> 0) { - $2_1 = $1_1 << $0; - $0 = 0; - } else { - $2_1 = (1 << $0) - 1 & $1_1 >>> 32 - $0; - $0 = $1_1 << $0; - } - return $2($3 | $0, $2_1); + return $2($0, $1_1); } var FUNCTION_TABLE = []; |