diff options
author | Alon Zakai <azakai@google.com> | 2024-06-03 14:19:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 14:19:50 -0700 |
commit | ea4d9e45e1b9a929a38fbca9a6c316b0b918b12e (patch) | |
tree | b5bf325352e34021e488cf83907ed064730f0b8f /src/passes/TupleOptimization.cpp | |
parent | 9347a223fcc1b6c297805b3c37fe1e7473158720 (diff) | |
download | binaryen-ea4d9e45e1b9a929a38fbca9a6c316b0b918b12e.tar.gz binaryen-ea4d9e45e1b9a929a38fbca9a6c316b0b918b12e.tar.bz2 binaryen-ea4d9e45e1b9a929a38fbca9a6c316b0b918b12e.zip |
Effects: Add missing combining logic for MayNotReturn (#6635)
Without that logic we could end up dropping that particular effect. This actually
made a test pass when it should not: the modified test here has a function with
effects that are ok to remove, but it had a loop which adds MayNotReturn which
we should actually not remove, so it was removed erroneously.
To fix the test, add other effects there (local ones) that we can see are removable.
Also add a function with a loop to test that we do not remove an infinite loop,
which adds coverage for the fix here.
Diffstat (limited to 'src/passes/TupleOptimization.cpp')
0 files changed, 0 insertions, 0 deletions