diff options
author | Alon Zakai <azakai@google.com> | 2021-07-22 09:11:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 09:11:12 -0700 |
commit | 556381b41aa95b56a77e9217afb2e2d7ecb230f5 (patch) | |
tree | 8bd8f1dd5083427e6c2024ea7af25ae487247b68 /src/passes/OptimizeInstructions.cpp | |
parent | ed97c68294a8d95c57972eae22906cc0bea1aae8 (diff) | |
download | binaryen-556381b41aa95b56a77e9217afb2e2d7ecb230f5.tar.gz binaryen-556381b41aa95b56a77e9217afb2e2d7ecb230f5.tar.bz2 binaryen-556381b41aa95b56a77e9217afb2e2d7ecb230f5.zip |
[Wasm GC] Avoid dangerous StackIR opts on GC (#4007)
removeUnneededBlocks() can force us to use a local when we
load the emitted wasm, which can't work for something nondefaultable
like an RTT.
For now, just don't run that optimization if GC is enabled. Eventually,
perhaps we'll want to enable this optimization in a different way.
Diffstat (limited to 'src/passes/OptimizeInstructions.cpp')
0 files changed, 0 insertions, 0 deletions