summaryrefslogtreecommitdiff
path: root/test/passes/asyncify_optimize-level=1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/asyncify_optimize-level=1.txt')
-rw-r--r--test/passes/asyncify_optimize-level=1.txt200
1 files changed, 35 insertions, 165 deletions
diff --git a/test/passes/asyncify_optimize-level=1.txt b/test/passes/asyncify_optimize-level=1.txt
index 1946a7f96..19e0cd160 100644
--- a/test/passes/asyncify_optimize-level=1.txt
+++ b/test/passes/asyncify_optimize-level=1.txt
@@ -286,26 +286,19 @@
(i32.load
(global.get $__asyncify_data)
)
- (i32.const -8)
+ (i32.const -4)
)
)
- (local.set $0
+ (local.set $1
(i32.load
- (local.tee $1
- (i32.load
- (global.get $__asyncify_data)
- )
+ (i32.load
+ (global.get $__asyncify_data)
)
)
)
- (local.set $1
- (i32.load offset=4
- (local.get $1)
- )
- )
)
)
- (local.set $2
+ (local.set $0
(block $__asyncify_unwind (result i32)
(if
(i32.eq
@@ -385,7 +378,7 @@
(i32.load
(global.get $__asyncify_data)
)
- (local.get $2)
+ (local.get $0)
)
(i32.store
(global.get $__asyncify_data)
@@ -397,15 +390,9 @@
)
)
(i32.store
- (local.tee $2
- (i32.load
- (global.get $__asyncify_data)
- )
+ (i32.load
+ (global.get $__asyncify_data)
)
- (local.get $0)
- )
- (i32.store offset=4
- (local.get $2)
(local.get $1)
)
(i32.store
@@ -414,38 +401,14 @@
(i32.load
(global.get $__asyncify_data)
)
- (i32.const 8)
+ (i32.const 4)
)
)
(i32.const 0)
)
(func $calls-import2-if (param $0 i32)
(local $1 i32)
- (if
- (i32.eq
- (global.get $__asyncify_state)
- (i32.const 2)
- )
- (block
- (i32.store
- (global.get $__asyncify_data)
- (i32.add
- (i32.load
- (global.get $__asyncify_data)
- )
- (i32.const -4)
- )
- )
- (local.set $0
- (i32.load
- (i32.load
- (global.get $__asyncify_data)
- )
- )
- )
- )
- )
- (local.set $1
+ (local.set $0
(block $__asyncify_unwind (result i32)
(if
(i32.eq
@@ -508,21 +471,6 @@
(i32.load
(global.get $__asyncify_data)
)
- (local.get $1)
- )
- (i32.store
- (global.get $__asyncify_data)
- (i32.add
- (i32.load
- (global.get $__asyncify_data)
- )
- (i32.const 4)
- )
- )
- (i32.store
- (i32.load
- (global.get $__asyncify_data)
- )
(local.get $0)
)
(i32.store
@@ -550,26 +498,19 @@
(i32.load
(global.get $__asyncify_data)
)
- (i32.const -8)
+ (i32.const -4)
)
)
- (local.set $0
+ (local.set $1
(i32.load
- (local.tee $1
- (i32.load
- (global.get $__asyncify_data)
- )
+ (i32.load
+ (global.get $__asyncify_data)
)
)
)
- (local.set $1
- (i32.load offset=4
- (local.get $1)
- )
- )
)
)
- (local.set $2
+ (local.set $0
(block $__asyncify_unwind (result i32)
(if
(i32.eq
@@ -675,7 +616,7 @@
(i32.load
(global.get $__asyncify_data)
)
- (local.get $2)
+ (local.get $0)
)
(i32.store
(global.get $__asyncify_data)
@@ -687,15 +628,9 @@
)
)
(i32.store
- (local.tee $2
- (i32.load
- (global.get $__asyncify_data)
- )
+ (i32.load
+ (global.get $__asyncify_data)
)
- (local.get $0)
- )
- (i32.store offset=4
- (local.get $2)
(local.get $1)
)
(i32.store
@@ -704,45 +639,14 @@
(i32.load
(global.get $__asyncify_data)
)
- (i32.const 8)
+ (i32.const 4)
)
)
)
(func $calls-import2-if-else-oneside (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
- (if
- (i32.eq
- (global.get $__asyncify_state)
- (i32.const 2)
- )
- (block
- (i32.store
- (global.get $__asyncify_data)
- (i32.add
- (i32.load
- (global.get $__asyncify_data)
- )
- (i32.const -8)
- )
- )
- (local.set $0
- (i32.load
- (local.tee $1
- (i32.load
- (global.get $__asyncify_data)
- )
- )
- )
- )
- (local.set $1
- (i32.load offset=4
- (local.get $1)
- )
- )
- )
- )
- (local.set $2
+ (local.set $0
(block $__asyncify_unwind (result i32)
(if
(i32.eq
@@ -759,7 +663,7 @@
(i32.const -4)
)
)
- (local.set $2
+ (local.set $1
(i32.load
(i32.load
(global.get $__asyncify_data)
@@ -770,9 +674,9 @@
)
(if
(i32.or
- (local.tee $1
+ (local.tee $2
(select
- (local.get $1)
+ (local.get $2)
(local.get $0)
(global.get $__asyncify_state)
)
@@ -794,7 +698,7 @@
(if
(i32.or
(i32.eqz
- (local.get $1)
+ (local.get $2)
)
(i32.eq
(global.get $__asyncify_state)
@@ -804,7 +708,7 @@
(if
(select
(i32.eqz
- (local.get $2)
+ (local.get $1)
)
(i32.const 1)
(global.get $__asyncify_state)
@@ -840,36 +744,15 @@
(i32.load
(global.get $__asyncify_data)
)
- (local.get $2)
- )
- (i32.store
- (global.get $__asyncify_data)
- (i32.add
- (i32.load
- (global.get $__asyncify_data)
- )
- (i32.const 4)
- )
- )
- (i32.store
- (local.tee $2
- (i32.load
- (global.get $__asyncify_data)
- )
- )
(local.get $0)
)
- (i32.store offset=4
- (local.get $2)
- (local.get $1)
- )
(i32.store
(global.get $__asyncify_data)
(i32.add
(i32.load
(global.get $__asyncify_data)
)
- (i32.const 8)
+ (i32.const 4)
)
)
(i32.const 0)
@@ -889,26 +772,19 @@
(i32.load
(global.get $__asyncify_data)
)
- (i32.const -8)
+ (i32.const -4)
)
)
- (local.set $0
+ (local.set $1
(i32.load
- (local.tee $1
- (i32.load
- (global.get $__asyncify_data)
- )
+ (i32.load
+ (global.get $__asyncify_data)
)
)
)
- (local.set $1
- (i32.load offset=4
- (local.get $1)
- )
- )
)
)
- (local.set $2
+ (local.set $0
(block $__asyncify_unwind (result i32)
(if
(i32.eq
@@ -1006,7 +882,7 @@
(i32.load
(global.get $__asyncify_data)
)
- (local.get $2)
+ (local.get $0)
)
(i32.store
(global.get $__asyncify_data)
@@ -1018,15 +894,9 @@
)
)
(i32.store
- (local.tee $2
- (i32.load
- (global.get $__asyncify_data)
- )
+ (i32.load
+ (global.get $__asyncify_data)
)
- (local.get $0)
- )
- (i32.store offset=4
- (local.get $2)
(local.get $1)
)
(i32.store
@@ -1035,7 +905,7 @@
(i32.load
(global.get $__asyncify_data)
)
- (i32.const 8)
+ (i32.const 4)
)
)
(i32.const 0)