diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-11 19:21:48 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 19:21:48 -0700 |
commit | 24fa19071d309c59eee5c2bd966139eaab45b5ba (patch) | |
tree | 97ce18d123b666e4650728d1538cb990c3e877a3 /test/unit.fromasm.no-opts | |
parent | 996262dcdb88388717aab72bd8f37841aaabb24c (diff) | |
parent | 9a4007e0ba7a77e1eed742278cd24a3914daae30 (diff) | |
download | binaryen-24fa19071d309c59eee5c2bd966139eaab45b5ba.tar.gz binaryen-24fa19071d309c59eee5c2bd966139eaab45b5ba.tar.bz2 binaryen-24fa19071d309c59eee5c2bd966139eaab45b5ba.zip |
Merge pull request #583 from WebAssembly/br-more
Fix and improve br optimizations
Diffstat (limited to 'test/unit.fromasm.no-opts')
-rw-r--r-- | test/unit.fromasm.no-opts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts index 92d2d2add..ccf89c5b6 100644 --- a/test/unit.fromasm.no-opts +++ b/test/unit.fromasm.no-opts @@ -725,6 +725,30 @@ ) ) ) + (func $phi (result i32) + (local $x i32) + (block $do-once$0 + (block + (if + (call $lb + (i32.const 1) + ) + (block + (set_local $x + (i32.const 0) + ) + (br $do-once$0) + ) + ) + (set_local $x + (i32.const 1) + ) + ) + ) + (return + (get_local $x) + ) + ) (func $z (nop) ) |