summaryrefslogtreecommitdiff
path: root/test/lit/binary/delegate-block.test
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-11-26 16:04:07 -0800
committerGitHub <noreply@github.com>2024-11-26 16:04:07 -0800
commit98f57983b0bbb05222ce45bb84cf8b87f36f03f1 (patch)
tree40c616768fd82a6c832873706c39d14535f25a4c /test/lit/binary/delegate-block.test
parent73971d78e5355e8f08b4026b741992d78bd77476 (diff)
downloadbinaryen-98f57983b0bbb05222ce45bb84cf8b87f36f03f1.tar.gz
binaryen-98f57983b0bbb05222ce45bb84cf8b87f36f03f1.tar.bz2
binaryen-98f57983b0bbb05222ce45bb84cf8b87f36f03f1.zip
Handle concrete values in CodeFolding (#7117)
CodeFolding previously only worked on blocks that did not produce values. It worked on Ifs that produced values, but only by accident; the logic for folding matching tails was not written to support tails producing concrete values, but it happened to work for Ifs because subsequent ReFinalize runs fixed all the incorrect types it produced. Improve the power of the optimization by explicitly handling tails that produce concrete values for both blocks and ifs. Now that the core logic handles concrete values correctly, remove the unnecessary ReFinalize run. Also remove the separate optimization of Ifs with identical arms; this optimization requires ReFinalize and is already performed by OptimizeInstructions.
Diffstat (limited to 'test/lit/binary/delegate-block.test')
0 files changed, 0 insertions, 0 deletions