summaryrefslogtreecommitdiff
path: root/test/lit/passes/asyncify_enable-multivalue.wast
diff options
context:
space:
mode:
authorAlexander Guryanov <caiiiycuk@gmail.com>2022-12-06 19:25:48 +0300
committerGitHub <noreply@github.com>2022-12-06 08:25:48 -0800
commite2add4b09e394a2ebf89ebcc27b5e9b6417fc68b (patch)
tree9fb62e549b63f5ac50b6cfbbff60cad48005fa67 /test/lit/passes/asyncify_enable-multivalue.wast
parent145e8f9ece5a2f6f42eeedf75f8e24987cb8511a (diff)
downloadbinaryen-e2add4b09e394a2ebf89ebcc27b5e9b6417fc68b.tar.gz
binaryen-e2add4b09e394a2ebf89ebcc27b5e9b6417fc68b.tar.bz2
binaryen-e2add4b09e394a2ebf89ebcc27b5e9b6417fc68b.zip
Optimize Asyncify to not flatten/optimize unnecessarily (#5293)
Add a way to proxy passes and the addition of passes in pass runners. With that we can make Asyncify only modify functions it actually needs to. On a project that Asyncify only needs to modify a few functions on, this can save a huge amount of time as it avoids flattening+optimizing the majority of the module. Fixes #4822
Diffstat (limited to 'test/lit/passes/asyncify_enable-multivalue.wast')
-rw-r--r--test/lit/passes/asyncify_enable-multivalue.wast18
1 files changed, 3 insertions, 15 deletions
diff --git a/test/lit/passes/asyncify_enable-multivalue.wast b/test/lit/passes/asyncify_enable-multivalue.wast
index 28210034b..c9a84d458 100644
--- a/test/lit/passes/asyncify_enable-multivalue.wast
+++ b/test/lit/passes/asyncify_enable-multivalue.wast
@@ -37,18 +37,10 @@
;; CHECK: (export "asyncify_get_state" (func $asyncify_get_state))
;; CHECK: (func $do_sleep
- ;; CHECK-NEXT: (local $0 i32)
- ;; CHECK-NEXT: (local $1 i32)
- ;; CHECK-NEXT: (local.set $0
- ;; CHECK-NEXT: (global.get $sleeping)
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: (local.set $1
+ ;; CHECK-NEXT: (if
;; CHECK-NEXT: (i32.eqz
- ;; CHECK-NEXT: (local.get $0)
+ ;; CHECK-NEXT: (global.get $sleeping)
;; CHECK-NEXT: )
- ;; CHECK-NEXT: )
- ;; CHECK-NEXT: (if
- ;; CHECK-NEXT: (local.get $1)
;; CHECK-NEXT: (block
;; CHECK-NEXT: (global.set $sleeping
;; CHECK-NEXT: (i32.const 1)
@@ -834,15 +826,11 @@
(drop (call $import2))
)
;; CHECK: (func $calls-nothing
- ;; CHECK-NEXT: (local $0 i32)
- ;; CHECK-NEXT: (local.set $0
+ ;; CHECK-NEXT: (drop
;; CHECK-NEXT: (i32.eqz
;; CHECK-NEXT: (i32.const 17)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
- ;; CHECK-NEXT: (drop
- ;; CHECK-NEXT: (local.get $0)
- ;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $calls-nothing
(drop (i32.eqz (i32.const 17)))