diff options
author | Alon Zakai <azakai@google.com> | 2019-05-01 17:18:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 17:18:04 -0700 |
commit | af459403bc6e1bb99468ad05f351665143193082 (patch) | |
tree | fd6b0c2e0bd14822c3e3bb1e0f4a3b42c78bb56c /test/wasm2js/f32_cmp.2asm.js | |
parent | 2bd3758a22131cfd6925b3fd995657b211095c90 (diff) | |
download | binaryen-af459403bc6e1bb99468ad05f351665143193082.tar.gz binaryen-af459403bc6e1bb99468ad05f351665143193082.tar.bz2 binaryen-af459403bc6e1bb99468ad05f351665143193082.zip |
wasm2js: don't run coalesce-locals if not optimizing (#2076)
That pass is very slow on unoptimized code (super-linear on the number of locals, which if unoptimized can be massive due to flatten).
Diffstat (limited to 'test/wasm2js/f32_cmp.2asm.js')
-rw-r--r-- | test/wasm2js/f32_cmp.2asm.js | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/test/wasm2js/f32_cmp.2asm.js b/test/wasm2js/f32_cmp.2asm.js index 763f90b94..671db639d 100644 --- a/test/wasm2js/f32_cmp.2asm.js +++ b/test/wasm2js/f32_cmp.2asm.js @@ -21,40 +21,40 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0($0_1, $1_1) { - $0_1 = Math_fround($0_1); - $1_1 = Math_fround($1_1); - return $0_1 == $1_1 | 0; + function $0(x, y) { + x = Math_fround(x); + y = Math_fround(y); + return x == y | 0; } - function $1($0_1, $1_1) { - $0_1 = Math_fround($0_1); - $1_1 = Math_fround($1_1); - return $0_1 != $1_1 | 0; + function $1(x, y) { + x = Math_fround(x); + y = Math_fround(y); + return x != y | 0; } - function $2($0_1, $1_1) { - $0_1 = Math_fround($0_1); - $1_1 = Math_fround($1_1); - return $0_1 < $1_1 | 0; + function $2(x, y) { + x = Math_fround(x); + y = Math_fround(y); + return x < y | 0; } - function $3($0_1, $1_1) { - $0_1 = Math_fround($0_1); - $1_1 = Math_fround($1_1); - return $0_1 <= $1_1 | 0; + function $3(x, y) { + x = Math_fround(x); + y = Math_fround(y); + return x <= y | 0; } - function $4($0_1, $1_1) { - $0_1 = Math_fround($0_1); - $1_1 = Math_fround($1_1); - return $0_1 > $1_1 | 0; + function $4(x, y) { + x = Math_fround(x); + y = Math_fround(y); + return x > y | 0; } - function $5($0_1, $1_1) { - $0_1 = Math_fround($0_1); - $1_1 = Math_fround($1_1); - return $0_1 >= $1_1 | 0; + function $5(x, y) { + x = Math_fround(x); + y = Math_fround(y); + return x >= y | 0; } var FUNCTION_TABLE = []; |