summaryrefslogtreecommitdiff
path: root/test/wasm2js/i64-add-sub.2asm.js.opt
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-05-01 10:43:01 -0700
committerGitHub <noreply@github.com>2019-05-01 10:43:01 -0700
commit73709b4da08d285c2237c8c23a54ba53274c0c7f (patch)
tree2f428e5367c511b22391a8c471edbc0e7ed0688a /test/wasm2js/i64-add-sub.2asm.js.opt
parentac93469d7fde75397403db94d9bf0c1bac0cf60f (diff)
downloadbinaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.tar.gz
binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.tar.bz2
binaryen-73709b4da08d285c2237c8c23a54ba53274c0c7f.zip
wasm2js: run more optimizations (#2073)
In particular, coalesce-locals is useful even if closure is run later (apparently it finds stuff closure can't).
Diffstat (limited to 'test/wasm2js/i64-add-sub.2asm.js.opt')
-rw-r--r--test/wasm2js/i64-add-sub.2asm.js.opt38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/wasm2js/i64-add-sub.2asm.js.opt b/test/wasm2js/i64-add-sub.2asm.js.opt
index 5036c2acf..c613c2b4f 100644
--- a/test/wasm2js/i64-add-sub.2asm.js.opt
+++ b/test/wasm2js/i64-add-sub.2asm.js.opt
@@ -37,24 +37,24 @@ function asmFunc(global, env, buffer) {
}
function legalstub$1($0, $1_1, $2, $3, $4, $5) {
- var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
- $11 = $0;
- $7 = 32;
- $0 = $7 & 31;
- if (32 >>> 0 <= $7 >>> 0) {
+ var $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0;
+ $6 = $0;
+ $8 = 32;
+ $0 = $8 & 31;
+ if (32 >>> 0 <= $8 >>> 0) {
{
- $6 = $1_1 << $0;
- $8 = 0;
+ $7 = $1_1 << $0;
+ $0 = 0;
}
} else {
{
- $6 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $6 << $0;
- $8 = $1_1 << $0;
+ $7 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $7 << $0;
+ $0 = $1_1 << $0;
}
}
- $12 = $11 | $8;
- $13 = $6 | $17;
- $14 = $2;
+ $8 = $6 | $0;
+ $7 = $7 | $9;
+ $6 = $2;
$2 = 0;
$1_1 = $3;
$3 = 32;
@@ -62,31 +62,31 @@ function asmFunc(global, env, buffer) {
if (32 >>> 0 <= $3 >>> 0) {
{
$2 = $1_1 << $0;
- $9 = 0;
+ $0 = 0;
}
} else {
{
$2 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2 << $0;
- $9 = $1_1 << $0;
+ $0 = $1_1 << $0;
}
}
- $15 = $14 | $9;
- $16 = $2 | $18;
+ $6 = $6 | $0;
+ $9 = $2 | $10;
$2 = 0;
$1_1 = $5;
$0 = 32 & 31;
if (32 >>> 0 <= $3 >>> 0) {
{
$2 = $1_1 << $0;
- $10 = 0;
+ $0 = 0;
}
} else {
{
$2 = (1 << $0) - 1 & $1_1 >>> 32 - $0 | $2 << $0;
- $10 = $1_1 << $0;
+ $0 = $1_1 << $0;
}
}
- return $1($12, $13, $15, $16, $10 | $4, $2 | $19);
+ return $1($8, $7, $6, $9, $0 | $4, $2 | $11);
}
function legalstub$2($0, $1_1, $2, $3, $4, $5) {