summaryrefslogtreecommitdiff
path: root/test/wasm2js/nested-selects.2asm.js.opt
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2020-07-22 20:45:47 +0300
committerGitHub <noreply@github.com>2020-07-22 10:45:47 -0700
commita097820b6f0d2bc4d31ace2764f07bfa17c2cad8 (patch)
treeb2396986d287bd71f321a4513342ae4f3523e565 /test/wasm2js/nested-selects.2asm.js.opt
parent86362be31f1ae2d65e03fcc28bbf6526e48242f7 (diff)
downloadbinaryen-a097820b6f0d2bc4d31ace2764f07bfa17c2cad8.tar.gz
binaryen-a097820b6f0d2bc4d31ace2764f07bfa17c2cad8.tar.bz2
binaryen-a097820b6f0d2bc4d31ace2764f07bfa17c2cad8.zip
Optimize select with const arms (#2869)
x ? 1 : 0 => !!x and so forth.
Diffstat (limited to 'test/wasm2js/nested-selects.2asm.js.opt')
-rw-r--r--test/wasm2js/nested-selects.2asm.js.opt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/wasm2js/nested-selects.2asm.js.opt b/test/wasm2js/nested-selects.2asm.js.opt
index 16d5529cd..9bb06d563 100644
--- a/test/wasm2js/nested-selects.2asm.js.opt
+++ b/test/wasm2js/nested-selects.2asm.js.opt
@@ -22,7 +22,7 @@ function asmFunc(global, env, buffer) {
var infinity = global.Infinity;
function $1($0) {
$0 = $0 | 0;
- return (($0 | 0) < 0 ? -1 : ($0 | 0) > 0 ? 1 : 0) | 0;
+ return (($0 | 0) < 0 ? -1 : ($0 | 0) > 0) | 0;
}
var FUNCTION_TABLE = [];