diff options
author | Alon Zakai <azakai@google.com> | 2023-01-09 15:15:43 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 15:15:43 -0800 |
commit | a803a0830586aaa3e9c989403881298b430f312c (patch) | |
tree | b2208d66d1abc2e875b990f4a1816a69ba7cc3a0 /src/binaryen-c.cpp | |
parent | 67abc2a1b9adcdf080387a29e0c92b6f5a31057a (diff) | |
download | binaryen-a803a0830586aaa3e9c989403881298b430f312c.tar.gz binaryen-a803a0830586aaa3e9c989403881298b430f312c.tar.bz2 binaryen-a803a0830586aaa3e9c989403881298b430f312c.zip |
[Wasm GC] More minor cast optimizations (#5402)
Look for definitely-failing casts along all the fallthrough values. Specifically, if any
cast in the middle proves the final cast will fail, then we know we will trap.
Fully optimize redundant casts, considering both the type and the heap type.
Combine a cast with a ref.as_non_null.
Diffstat (limited to 'src/binaryen-c.cpp')
0 files changed, 0 insertions, 0 deletions