summaryrefslogtreecommitdiff
path: root/test/lit/passes/extract-function.wast
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-10-18 13:57:04 -0700
committerGitHub <noreply@github.com>2023-10-18 13:57:04 -0700
commit45f5bd2f440d6db5737947434cecdc4ffa37f567 (patch)
treeba7ee95312f923f97870d84b96f5268c862959c8 /test/lit/passes/extract-function.wast
parentecb3eb3fdb9536472706c173d00b3379e3332469 (diff)
downloadbinaryen-45f5bd2f440d6db5737947434cecdc4ffa37f567.tar.gz
binaryen-45f5bd2f440d6db5737947434cecdc4ffa37f567.tar.bz2
binaryen-45f5bd2f440d6db5737947434cecdc4ffa37f567.zip
SimplifyGlobals: Fold single-use globals to their use (#6023)
For example, (global $a (struct.new $A)) (global $b (struct.new $B (global.get $A))) => (global $b (struct.new $B (struct.new $A))) and the global $a is now unused. This is valid if $a has no other uses. This saves a little in code size, but should not really help otherwise, as we already look through immutable global.get operations in important optimizations. But the code size may matter if there are many such single- use globals.
Diffstat (limited to 'test/lit/passes/extract-function.wast')
0 files changed, 0 insertions, 0 deletions