summaryrefslogtreecommitdiff
path: root/src/tools/wasm-ctor-eval.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-10-24 10:17:40 -0700
committerGitHub <noreply@github.com>2023-10-24 10:17:40 -0700
commitcce277fc649d7406f446f52778286192367a35ad (patch)
tree1e3a931d38f44875fd29cf10bdfd4124f667d5d3 /src/tools/wasm-ctor-eval.cpp
parent2134d9a32b89b5b30121956bbfb070b8c9ee2bd5 (diff)
downloadbinaryen-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