summaryrefslogtreecommitdiff
path: root/src/passes/TupleOptimization.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-06-03 14:19:50 -0700
committerGitHub <noreply@github.com>2024-06-03 14:19:50 -0700
commitea4d9e45e1b9a929a38fbca9a6c316b0b918b12e (patch)
treeb5bf325352e34021e488cf83907ed064730f0b8f /src/passes/TupleOptimization.cpp
parent9347a223fcc1b6c297805b3c37fe1e7473158720 (diff)
downloadbinaryen-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