summaryrefslogtreecommitdiff
path: root/src/passes/SignaturePruning.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-03-28 09:44:00 -0700
committerGitHub <noreply@github.com>2022-03-28 16:44:00 +0000
commit4643f26e113476ebb273ee4f69e89c61801c7c2f (patch)
tree5de7dc236aa367d11b88f1c639aba44c7efb9b2d /src/passes/SignaturePruning.cpp
parent11932cc31e88d3d368714fcca43df979f7694bd1 (diff)
downloadbinaryen-4643f26e113476ebb273ee4f69e89c61801c7c2f.tar.gz
binaryen-4643f26e113476ebb273ee4f69e89c61801c7c2f.tar.bz2
binaryen-4643f26e113476ebb273ee4f69e89c61801c7c2f.zip
Generalize PossibleConstantValues for immutable globals (#4549)
This moves more logic from ConstantFieldPropagation into PossibleConstantValues, that is, instead of handling the two cases of a Literal or a Name before calling PossibleConstantValues, move that code into the helper class. That way all users of PossibleConstantValues can benefit from it. In particular, this makes DeadArgumentElimination now support optimizing immutable globals, as well as ref.func and ref.null. (Changes to test/lit/passes/dae-gc-refine-params.wast are to avoid the new optimizations from kicking in, so that it still tests what it tested before.)
Diffstat (limited to 'src/passes/SignaturePruning.cpp')
0 files changed, 0 insertions, 0 deletions