summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-09-13 17:39:31 -0700
committerGitHub <noreply@github.com>2019-09-13 17:39:31 -0700
commit167acc73c36fefe9da501c0a48a5de1502f4133b (patch)
treed896c5536338c78b0fae75dc02ea84e83cca2b21 /src/wasm/wasm.cpp
parent6a9aceaae7480aa9034243614600634beb350316 (diff)
downloadbinaryen-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