diff options
author | Thomas Lively <tlively@google.com> | 2024-11-25 12:05:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-25 12:05:15 -0800 |
commit | a2a8d2a3a067a23c547b51b4544a933f77a1c03c (patch) | |
tree | 08b4a84964d616cdd6d7a072ca2bfae3ad44d808 /test/metadatas.wasm | |
parent | 3d394018fe30e5d7ea153c975a158b95c1720393 (diff) | |
download | binaryen-a2a8d2a3a067a23c547b51b4544a933f77a1c03c.tar.gz binaryen-a2a8d2a3a067a23c547b51b4544a933f77a1c03c.tar.bz2 binaryen-a2a8d2a3a067a23c547b51b4544a933f77a1c03c.zip |
Handle unoptimized branches in CodeFolding (#7111)
CodeFolding previously did not consider br_on_* instructions at all, so
it would happily merge tails even if there were br_on_* branches to the
same label with non-matching tails. Fix the bug by making any label
targeted by any instruction not explicitly handled by CodeFolding
unoptimizable. This will gracefully handle other branching instructions
like `resume` and `resume_throw` as well. Folding these branches
properly is left as future work.
Also rename the test file from code-folding_enable-threads.wast to just
code-folding.wast and enable all features instead of just threads. The
old name was left over from when the test was originally ported to lit,
and the new feature is necessary because the new test uses GC
instructions.
Diffstat (limited to 'test/metadatas.wasm')
0 files changed, 0 insertions, 0 deletions