diff options
author | Alon Zakai <azakai@google.com> | 2019-09-13 17:39:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-13 17:39:31 -0700 |
commit | 167acc73c36fefe9da501c0a48a5de1502f4133b (patch) | |
tree | d896c5536338c78b0fae75dc02ea84e83cca2b21 /src/wasm/wasm.cpp | |
parent | 6a9aceaae7480aa9034243614600634beb350316 (diff) | |
download | binaryen-167acc73c36fefe9da501c0a48a5de1502f4133b.tar.gz binaryen-167acc73c36fefe9da501c0a48a5de1502f4133b.tar.bz2 binaryen-167acc73c36fefe9da501c0a48a5de1502f4133b.zip |
SimplifyGlobals: Apply known constant values in linear traces (#2340)
This optimizes stuff like
(global.set $x (i32.const 123))
(global.get $x)
into
(global.set $x (i32.const 123))
(i32.const 123)
This doesn't help much with LLVM output as it's rare to use globals (except for the stack pointer, and that's already well optimized), but it may help on general wasm. It can also help with Asyncify that does use globals extensively.
Diffstat (limited to 'src/wasm/wasm.cpp')
0 files changed, 0 insertions, 0 deletions