diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-11-26 14:15:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 14:15:54 -0800 |
commit | 4d65912ee77fd665a1bfff50d81e0aa896dab8a5 (patch) | |
tree | efcaab01538e3dbd8769b74b1d82fe0709af6b6e /test/binaryen.js/debug-info.js | |
parent | da3bb2ffcc8a6efd6a95a07f7de793d1362f4a07 (diff) | |
download | binaryen-4d65912ee77fd665a1bfff50d81e0aa896dab8a5.tar.gz binaryen-4d65912ee77fd665a1bfff50d81e0aa896dab8a5.tar.bz2 binaryen-4d65912ee77fd665a1bfff50d81e0aa896dab8a5.zip |
Merge-Blocks improvements (#1760)
Previously we didn't try to merge a block into the parent if the block had a name. This lets us merge part of it, that is:
(block
(..a..)
(block $child
(..b..)
(.. some br to $child ..)
(..c..)
)
)
=>
(block
(..a..)
(..b..) ;; moved out
(block $child
(.. some br to $child ..)
(..c..)
)
)
This is beneficial for 2 reasons: the child may now be a singleton, so we can remove the block; or, now that we canonicalized the br-containing code to the head of the child, we may be able to turn it into an if.
Diffstat (limited to 'test/binaryen.js/debug-info.js')
0 files changed, 0 insertions, 0 deletions