diff options
author | Alon Zakai <azakai@google.com> | 2023-10-24 14:37:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 14:37:52 -0700 |
commit | ec8220f4aa556ce39145db13eddd84855b11f76c (patch) | |
tree | d994013922dcd35e59f043df83899e6325f36102 /src/wasm/wasm.cpp | |
parent | ba04e395508fc3414b952287d7e918d20361087e (diff) | |
download | binaryen-ec8220f4aa556ce39145db13eddd84855b11f76c.tar.gz binaryen-ec8220f4aa556ce39145db13eddd84855b11f76c.tar.bz2 binaryen-ec8220f4aa556ce39145db13eddd84855b11f76c.zip |
Fix unreachable code in LocalGraph by making it imprecise there (#6048)
Followup to #6046 - the fuzzer found we missed handling the case of the entry itself
being unreachable, or of an unreachable loop later. Properly identifying unreachable
code requires a flow analysis, unfortunately, so this PR gives up on that and instead
allows LocalGraph to be imprecise in unreachable code. That avoids adding any
overhead, but does mean the IR may be slightly confusing when debugging. It does
not have any optimization downsides, however, as it only affects unreachable code.
Also add a dump() impl in that file which helps debugging.
Diffstat (limited to 'src/wasm/wasm.cpp')
0 files changed, 0 insertions, 0 deletions