diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-23 15:05:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:07 -0700 |
commit | 323e32bc1ca73c92d81b7fe28fd54e62c2218801 (patch) | |
tree | 93d1394679d6eb2a2cb18b3621b2ea036f984336 /test/unit.fromasm.imprecise | |
parent | e125ae76b29b84563892263663e66ff072852c99 (diff) | |
download | binaryen-323e32bc1ca73c92d81b7fe28fd54e62c2218801.tar.gz binaryen-323e32bc1ca73c92d81b7fe28fd54e62c2218801.tar.bz2 binaryen-323e32bc1ca73c92d81b7fe28fd54e62c2218801.zip |
autodrop must be run before we optimize in asm2wasm, as otherwise its input is not yet valid
then after finalizeCalls, we must autodrop again to drop things that finalizeCalls changed
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index 945d6cc8e..06ab40915 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -473,10 +473,15 @@ ) ) (func $smallIf - (if - (i32.const 2) - (call $lb - (i32.const 3) + (block $do-once$0 + (drop + (if + (i32.const 2) + (call $lb + (i32.const 3) + ) + (br $do-once$0) + ) ) ) ) |