summaryrefslogtreecommitdiff
path: root/test/passes/interesting-pass-mix.txt
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2020-10-31 22:21:14 +0200
committerGitHub <noreply@github.com>2020-10-31 13:21:14 -0700
commitf1f2843699f5fd7b87dcefe00ce1eb8f72b37465 (patch)
treea197a55003192ed0df8b056738aa299632026cf0 /test/passes/interesting-pass-mix.txt
parent45f808c58c752b1b146b71b9d6e9e30758a808c2 (diff)
downloadbinaryen-f1f2843699f5fd7b87dcefe00ce1eb8f72b37465.tar.gz
binaryen-f1f2843699f5fd7b87dcefe00ce1eb8f72b37465.tar.bz2
binaryen-f1f2843699f5fd7b87dcefe00ce1eb8f72b37465.zip
Improve CostAnalyzer (#3309)
Make select cost more realistic - it should be as good as a jmp, as in an if. Add missing child visiting. Shorten repetitive cases in switches.
Diffstat (limited to 'test/passes/interesting-pass-mix.txt')
-rw-r--r--test/passes/interesting-pass-mix.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/passes/interesting-pass-mix.txt b/test/passes/interesting-pass-mix.txt
index c37414599..fc1993dfd 100644
--- a/test/passes/interesting-pass-mix.txt
+++ b/test/passes/interesting-pass-mix.txt
@@ -17,8 +17,7 @@
(i32.const 1)
)
(func $ifs (param $0 i32) (result i32)
- (if (result i32)
- (local.get $0)
+ (select
(select
(i32.const 2)
(i32.const 3)
@@ -29,6 +28,7 @@
(i32.const 5)
(local.get $0)
)
+ (local.get $0)
)
)
(func $loops (param $0 i32)