diff options
author | Alon Zakai <azakai@google.com> | 2019-07-20 18:09:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 18:09:18 -0700 |
commit | c8101d1b67ffcce38718f07ba560ce56ddb3f240 (patch) | |
tree | aae6831e6dd7ce004ab4ef2f317059329f0c07f7 /src/wasm/wasm-stack.cpp | |
parent | beef3e931fd776baa025cd58345b644b47481aa7 (diff) | |
download | binaryen-c8101d1b67ffcce38718f07ba560ce56ddb3f240.tar.gz binaryen-c8101d1b67ffcce38718f07ba560ce56ddb3f240.tar.bz2 binaryen-c8101d1b67ffcce38718f07ba560ce56ddb3f240.zip |
SimplifyGlobals: Propagate constants in global initializers (#2238)
(global $g1 (mut i32) (i32.const 42))
(global $g2 i32 (global.get $g1))
can be optimized to
(global $g1 (mut i32) (i32.const 42))
(global $g2 i32 (i32.const 42))
even though $g1 is mutable - because it can't be mutated during module instantiation.
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
0 files changed, 0 insertions, 0 deletions