summaryrefslogtreecommitdiff
path: root/test/wasm2js/nested-selects.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-04-25 17:10:06 -0700
committerGitHub <noreply@github.com>2019-04-25 17:10:06 -0700
commit78a4f9ef1afd6c209a5c69a8e7906ffe33575f58 (patch)
tree0f7443f2ca32ce1a6131a6cc95212de9b5ececb1 /test/wasm2js/nested-selects.2asm.js
parent21f014f4bd0ea1086895d8674f1473af222eb416 (diff)
downloadbinaryen-78a4f9ef1afd6c209a5c69a8e7906ffe33575f58.tar.gz
binaryen-78a4f9ef1afd6c209a5c69a8e7906ffe33575f58.tar.bz2
binaryen-78a4f9ef1afd6c209a5c69a8e7906ffe33575f58.zip
wasm2js2: optimize call_indirect and select operands (#2056)
Don't use temp vars to reorder them unless we need to.
Diffstat (limited to 'test/wasm2js/nested-selects.2asm.js')
-rw-r--r--test/wasm2js/nested-selects.2asm.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/wasm2js/nested-selects.2asm.js b/test/wasm2js/nested-selects.2asm.js
index b0fd8fed0..129ea99c9 100644
--- a/test/wasm2js/nested-selects.2asm.js
+++ b/test/wasm2js/nested-selects.2asm.js
@@ -23,8 +23,7 @@ function asmFunc(global, env, buffer) {
var infinity = global.Infinity;
function $1($0) {
$0 = $0 | 0;
- var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0, wasm2js_i32$3 = 0, wasm2js_i32$4 = 0, wasm2js_i32$5 = 0;
- return (wasm2js_i32$0 = -1, wasm2js_i32$1 = (wasm2js_i32$3 = 1, wasm2js_i32$4 = 0, wasm2js_i32$5 = ($0 | 0) > (0 | 0), wasm2js_i32$5 ? wasm2js_i32$3 : wasm2js_i32$4), wasm2js_i32$2 = ($0 | 0) < (0 | 0), wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1) | 0;
+ return (($0 | 0) < (0 | 0) ? -1 : ($0 | 0) > (0 | 0) ? 1 : 0) | 0;
}
var FUNCTION_TABLE = [];