diff options
author | Alon Zakai <azakai@google.com> | 2021-04-12 18:36:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 18:36:46 -0700 |
commit | 5c8dcfe744d759b9436a04b0267978f42e4725ab (patch) | |
tree | 74d1529167b3580578672267c7cdcee7dcc0c6bb /src/binaryen-c.h | |
parent | 0d7dac2923f9164ca7f1450b6f394ef8fa9d8a68 (diff) | |
download | binaryen-5c8dcfe744d759b9436a04b0267978f42e4725ab.tar.gz binaryen-5c8dcfe744d759b9436a04b0267978f42e4725ab.tar.bz2 binaryen-5c8dcfe744d759b9436a04b0267978f42e4725ab.zip |
[Wasm GC] Optimize away unnecessary non-null assertions (#3800)
ref.as_non_null is not needed if the value flows into a place that traps
on null anyhow. We replace a trap on one instruction with a trap on
another, but we allow such things (and even changing trap types, which
does not happen here).
Diffstat (limited to 'src/binaryen-c.h')
0 files changed, 0 insertions, 0 deletions