summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-11-04 11:56:45 -0700
committerGitHub <noreply@github.com>2021-11-04 11:56:45 -0700
commit6695d87fa9c406666e9ff1fb0d211107a0367000 (patch)
tree1149db4bba02c3117a71eccbf00789f3dc112df0 /src/wasm-interpreter.h
parentf1947db456df4576ac857a535f16cba3ffbfdc37 (diff)
downloadbinaryen-6695d87fa9c406666e9ff1fb0d211107a0367000.tar.gz
binaryen-6695d87fa9c406666e9ff1fb0d211107a0367000.tar.bz2
binaryen-6695d87fa9c406666e9ff1fb0d211107a0367000.zip
ChildLocalizer: Do not use locals needlessly (#4292)
We only need to use locals if there are effects we can't remove, or if they interact with other children. Improve the comment to explain what the ChildLocalizer is working towards: a state where all the children of the expression can be reordered or removed freely (local.gets have that property, as do other things if they have no relevant effects). Aside from avoiding wasteful locals, this is necessary for running GlobalTypeOptimization on j2wasm: That code will do a global.get of an rtt, and those cannot be placed in locals.
Diffstat (limited to 'src/wasm-interpreter.h')
0 files changed, 0 insertions, 0 deletions