summaryrefslogtreecommitdiff
path: root/src/passes/pass.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-02-25 13:00:20 -0800
committerGitHub <noreply@github.com>2019-02-25 13:00:20 -0800
commit8b698a87ba2c7891a8c17c07744bf3fcfe49f691 (patch)
tree7a890e92e8c7986a70b0fda5406cfba1ce70a5c2 /src/passes/pass.cpp
parent605e2b7498a7979b59917aa5db17d5022e974c8b (diff)
downloadbinaryen-8b698a87ba2c7891a8c17c07744bf3fcfe49f691.tar.gz
binaryen-8b698a87ba2c7891a8c17c07744bf3fcfe49f691.tar.bz2
binaryen-8b698a87ba2c7891a8c17c07744bf3fcfe49f691.zip
Vacuum unused values (#1918)
Checks if a value is being dropped higher up, like ``` (drop (block i32 (block i32 (i32.const 1) ) ) ) ``` Handling this forces us to be careful in that pass about whether a value is used, and whether the type matters (for example, we can't replace a unary with its child in all cases, if the return value matters).
Diffstat (limited to 'src/passes/pass.cpp')
0 files changed, 0 insertions, 0 deletions