summaryrefslogtreecommitdiff
path: root/src/wasm2js.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-09-24 14:28:26 -0700
committerGitHub <noreply@github.com>2024-09-24 14:28:26 -0700
commit4d906204ebd3ad88a48350f008c7b72a0844e1da (patch)
tree101c4e3231098c49c05bc206c9c3fae032f3267a /src/wasm2js.h
parent480f5ba352a9f89afe72779c81f8a16fd3c8ba4a (diff)
downloadbinaryen-4d906204ebd3ad88a48350f008c7b72a0844e1da.tar.gz
binaryen-4d906204ebd3ad88a48350f008c7b72a0844e1da.tar.bz2
binaryen-4d906204ebd3ad88a48350f008c7b72a0844e1da.zip
[NFC] Parallelize the actual inlining part of the Inlining pass (#6966)
We already parallelized collecting info about functions and finding inlining opportunities, but the actual inlining - copying the code into the target function - was done sequentially. It turns out that a lot of work happens there: this PR makes the pass over 2x faster. Details: * Move nameHint to InliningAction, so it is there when we apply the actions. * Add a DoInlining internal pass which calls doInlining(). * Refactor OptUtils a little to make it easy to run DoInlining before opts. * Also remove the return value of doInlining which was not used.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions