summaryrefslogtreecommitdiff
path: root/test/lit/multivalue.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively123@gmail.com>2024-11-26 17:12:15 -0800
committerGitHub <noreply@github.com>2024-11-27 01:12:15 +0000
commit6f0f2e00521843118b63f41732dc2eb86d39fa09 (patch)
tree260d2be13758e3768955ee1f2c684102b6fea39a /test/lit/multivalue.wast
parentcd3805e31e8f2544d5e32aa505fc5e3abcf93df2 (diff)
downloadbinaryen-6f0f2e00521843118b63f41732dc2eb86d39fa09.tar.gz
binaryen-6f0f2e00521843118b63f41732dc2eb86d39fa09.tar.bz2
binaryen-6f0f2e00521843118b63f41732dc2eb86d39fa09.zip
Make more Ifs unreachable (#7094)
Previously the only Ifs that were typed unreachable were those in which both arms were unreachable and those in which the condition was unreachable that would have otherwise been typed none. This caused problems in IRBuilder because Ifs with unreachable conditions and value-returning arms would have concrete types, effectively hiding the unreachable condition from the logic for dropping concretely typed expressions preceding an unreachable expression when finishing a scope. Relax the conditions under which an If can be typed unreachable so that all Ifs with unreachable conditions or two unreachable arms are typed unreachable. Propagating unreachability more eagerly this way makes various optimizations of Ifs more powerful. It also requires new handling for unreachable Ifs with concretely typed arms in the Printer to ensure that printed wat remains valid. Also update Unsubtyping, Flatten, and CodeFolding to account for the newly unreachable Ifs.
Diffstat (limited to 'test/lit/multivalue.wast')
0 files changed, 0 insertions, 0 deletions