summaryrefslogtreecommitdiff
path: root/test/binaryen.js/hello-world.js.txt
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-01-05 17:53:16 -0800
committerGitHub <noreply@github.com>2018-01-05 17:53:16 -0800
commit23728627ec6fbd43936b7564a7c8b598227ef9ce (patch)
treef0201b11a4a2edb6cab1ab5f9f88bc06d2897960 /test/binaryen.js/hello-world.js.txt
parent4c55e497d7455f6bbda2567f5535b89de7ce7c69 (diff)
downloadbinaryen-23728627ec6fbd43936b7564a7c8b598227ef9ce.tar.gz
binaryen-23728627ec6fbd43936b7564a7c8b598227ef9ce.tar.bz2
binaryen-23728627ec6fbd43936b7564a7c8b598227ef9ce.zip
Redundant Set Elimination pass (#1344)
This optimizes #1343. It looks for stores of a value that is already present in the local, which in particular can remove the initial set to 0 of loops starting at zero, since all locals are initialized to that already. This helps in real-world code, but is not super-common since coalescing means we tend to have assigned something else to it anyhow before we need it to be zero, so this mainly helps in small functions (and running this before coalescing would extend live ranges in potentially bad ways).
Diffstat (limited to 'test/binaryen.js/hello-world.js.txt')
0 files changed, 0 insertions, 0 deletions