diff options
author | Alon Zakai <azakai@google.com> | 2024-08-21 16:13:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 16:13:21 -0700 |
commit | 2d99e10c03e619b01688268319c1cd43f7539e33 (patch) | |
tree | 8fb390668de6d4f83e0fabcc654c19d87477d0f3 /test/lit/help/wasm-emscripten-finalize.test | |
parent | 60bd610acaa91cab538497342eb06e3b50d2fac9 (diff) | |
download | binaryen-2d99e10c03e619b01688268319c1cd43f7539e33.tar.gz binaryen-2d99e10c03e619b01688268319c1cd43f7539e33.tar.bz2 binaryen-2d99e10c03e619b01688268319c1cd43f7539e33.zip |
[NFC] Avoid quadratic time when precomputing blocks (#6862)
When precomputing fails on a child block of a parent block, there is no point
to precompute the parent, as that will fail as well.
This makes --precompute on Emscripten's test_biggerswitch go from 1.44
seconds to 0.02 seconds (not a typo, that is 72x faster). The absolute number
is not that big, but we do run this pass more than once, so it saves a noticeable
chunk of time.
Diffstat (limited to 'test/lit/help/wasm-emscripten-finalize.test')
0 files changed, 0 insertions, 0 deletions