summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-stack.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-04-06 09:01:44 -0700
committerGitHub <noreply@github.com>2023-04-06 09:01:44 -0700
commit6afbc200b57acd1b9111de7729d47fea1d04c5f6 (patch)
treef917f5a93ec90cdab4408ce869e6b33942815a05 /src/wasm/wasm-stack.cpp
parent1b25a3cb040b3e082d0471192084008634cf834d (diff)
downloadbinaryen-6afbc200b57acd1b9111de7729d47fea1d04c5f6.tar.gz
binaryen-6afbc200b57acd1b9111de7729d47fea1d04c5f6.tar.bz2
binaryen-6afbc200b57acd1b9111de7729d47fea1d04c5f6.zip
[Wasm GC] OptimizeInstructions: ref.as_non_null of null will trap (#5635)
Trivial peephole optimization. Some work was needed in the tests as some of them relied on that pattern for convenience, so I modified them to try to keep them testing the same thing as much as possible (for one, struct.set.null.fallthrough, I don't think we can actually keep testing the same, as the situation should not be possible any more).
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
0 files changed, 0 insertions, 0 deletions