From e2add4b09e394a2ebf89ebcc27b5e9b6417fc68b Mon Sep 17 00:00:00 2001 From: Alexander Guryanov Date: Tue, 6 Dec 2022 19:25:48 +0300 Subject: 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 --- test/lit/passes/asyncify_mod-asyncify-never-unwind.wast | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/lit/passes/asyncify_mod-asyncify-never-unwind.wast') diff --git a/test/lit/passes/asyncify_mod-asyncify-never-unwind.wast b/test/lit/passes/asyncify_mod-asyncify-never-unwind.wast index dce366b82..67bfb5694 100644 --- a/test/lit/passes/asyncify_mod-asyncify-never-unwind.wast +++ b/test/lit/passes/asyncify_mod-asyncify-never-unwind.wast @@ -433,15 +433,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))) -- cgit v1.2.3