diff options
author | Alon Zakai <azakai@google.com> | 2020-04-08 09:47:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 09:47:26 -0700 |
commit | 95a66b5b3ad34b47703131207bbab739366408c4 (patch) | |
tree | adf907929e9a5dd6831e28e63115332d553543c7 /scripts/test/support.py | |
parent | 0a44e995d9b09812260ca46add0f823820d4cc31 (diff) | |
download | binaryen-95a66b5b3ad34b47703131207bbab739366408c4.tar.gz binaryen-95a66b5b3ad34b47703131207bbab739366408c4.tar.bz2 binaryen-95a66b5b3ad34b47703131207bbab739366408c4.zip |
Run reorder-locals more in wasm2js (#2729)
coalesce-locals is nonlinear in the number of locals, so it is
greatly beneficial to reorder the locals (which then drops the
unused ones at the end automatically). The default passes
do this already, but wasm2js does some custom work, and
this was missing.
With this change that pass takes 10x less time on poppler
with --flatten --flatten --simplify-locals-notee-nostructure
which approximates what wasm2js does.
Diffstat (limited to 'scripts/test/support.py')
0 files changed, 0 insertions, 0 deletions