summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-validator.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-08-21 16:13:21 -0700
committerGitHub <noreply@github.com>2024-08-21 16:13:21 -0700
commit2d99e10c03e619b01688268319c1cd43f7539e33 (patch)
tree8fb390668de6d4f83e0fabcc654c19d87477d0f3 /src/wasm/wasm-validator.cpp
parent60bd610acaa91cab538497342eb06e3b50d2fac9 (diff)
downloadbinaryen-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 'src/wasm/wasm-validator.cpp')
0 files changed, 0 insertions, 0 deletions