summaryrefslogtreecommitdiff
path: root/test/passes/flatten.bin.txt
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-12-12 23:01:56 -0800
committerGitHub <noreply@github.com>2019-12-12 23:01:56 -0800
commitfbce98c6fdeb2a78ef58079ce1c2a385a17357d6 (patch)
treece3bcfcb7b9861fc82cdd545146aa19d143876ec /test/passes/flatten.bin.txt
parent16c6b44da64630cd6906433cf35edabcea93cffc (diff)
downloadbinaryen-fbce98c6fdeb2a78ef58079ce1c2a385a17357d6.tar.gz
binaryen-fbce98c6fdeb2a78ef58079ce1c2a385a17357d6.tar.bz2
binaryen-fbce98c6fdeb2a78ef58079ce1c2a385a17357d6.zip
Remove redundant instructions in Flatten (#2524)
When the expression type is none, it does not seem to be necessary to make it a prelude and insert a nop. This also results in unnecessary blocks that contains an expression with a nop, which can be reduced to just the expression. This also adds some newlines to improve readability.
Diffstat (limited to 'test/passes/flatten.bin.txt')
-rw-r--r--test/passes/flatten.bin.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/passes/flatten.bin.txt b/test/passes/flatten.bin.txt
index 554c6d6f9..b415de02a 100644
--- a/test/passes/flatten.bin.txt
+++ b/test/passes/flatten.bin.txt
@@ -103,7 +103,6 @@
(block $label$1
(nop)
(unreachable)
- (unreachable)
)
(unreachable)
)
@@ -142,15 +141,12 @@
(local.set $7
(f32.const 5.5)
)
- (nop)
(local.set $5
(i64.const 6)
)
- (nop)
(local.set $8
(f64.const 8)
)
- (nop)
(local.set $9
(local.get $0)
)