diff options
author | Alon Zakai <azakai@google.com> | 2019-07-11 16:48:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 16:48:40 -0700 |
commit | 39b9e38f8b76f64afdd8c146357d35699fafc347 (patch) | |
tree | 8e142a6dd06b12548102ab9d168fee28c78594d9 /test/passes/optimize-instructions_enable-threads.wast | |
parent | 6d47b7bf14da72489bac4f4637e797b854f317c8 (diff) | |
download | binaryen-39b9e38f8b76f64afdd8c146357d35699fafc347.tar.gz binaryen-39b9e38f8b76f64afdd8c146357d35699fafc347.tar.bz2 binaryen-39b9e38f8b76f64afdd8c146357d35699fafc347.zip |
Optimize select fallthrough values (#2220)
This became noticeable after #2216 which led to some eqz eqz pairs in the test suite.
Diffstat (limited to 'test/passes/optimize-instructions_enable-threads.wast')
-rw-r--r-- | test/passes/optimize-instructions_enable-threads.wast | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions_enable-threads.wast b/test/passes/optimize-instructions_enable-threads.wast index fa683ca78..dfcaea597 100644 --- a/test/passes/optimize-instructions_enable-threads.wast +++ b/test/passes/optimize-instructions_enable-threads.wast @@ -3738,6 +3738,16 @@ )) ;; TODO: more stuff here ) + (func $select-into-arms (param $x i32) (param $y i32) + (if + (select + (i32.eqz (i32.eqz (local.get $x))) + (i32.eqz (i32.eqz (local.get $y))) + (local.get $y) + ) + (unreachable) + ) + ) ) (module (import "env" "memory" (memory $0 (shared 256 256))) |