diff options
author | Alon Zakai <azakai@google.com> | 2023-10-24 10:17:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 10:17:40 -0700 |
commit | cce277fc649d7406f446f52778286192367a35ad (patch) | |
tree | 1e3a931d38f44875fd29cf10bdfd4124f667d5d3 /src/tools/wasm-ctor-eval.cpp | |
parent | 2134d9a32b89b5b30121956bbfb070b8c9ee2bd5 (diff) | |
download | binaryen-cce277fc649d7406f446f52778286192367a35ad.tar.gz binaryen-cce277fc649d7406f446f52778286192367a35ad.tar.bz2 binaryen-cce277fc649d7406f446f52778286192367a35ad.zip |
[NFC] LocalGraph: Move definition to logical place (#6045)
allGets was declared in a scope that kept it alive for all blocks, and at
the end of the loop we clear the gets for a particular block. That's clumsy,
and makes a followup harder, so this PR moves it to the natural place for it.
(That is, it moves it to the scope that handles a particular block, and removes
the manual clearing-out of the get at the end of the loop iteration.) Optimizing
compilers are smart enough to be efficient about stack allocations
of objects inside loops anyhow (which I measured).
Helps #6042.
Diffstat (limited to 'src/tools/wasm-ctor-eval.cpp')
0 files changed, 0 insertions, 0 deletions