diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-10-03 15:20:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 15:20:42 -0700 |
commit | 7c491995ea89685f1381bd37227857820dbc0a34 (patch) | |
tree | 52c44bcdefe8eea33a33d227761475f2718eba12 /src/passes/DeadCodeElimination.cpp | |
parent | 47c37d0c4457ede9f4343abca0d56e2baa7f3d8a (diff) | |
download | binaryen-7c491995ea89685f1381bd37227857820dbc0a34.tar.gz binaryen-7c491995ea89685f1381bd37227857820dbc0a34.tar.bz2 binaryen-7c491995ea89685f1381bd37227857820dbc0a34.zip |
Flattening rewrite (#1201)
Rename flatten-control-flow to flatten, which now flattens everything, not just control flow, so e.g.
(i32.add
(call $x)
(call $y)
)
==>
(block
(set_local $temp_x (call $x))
(set_local $temp_y (call $y))
(i32.add
(get_local $x)
(get_local $y)
)
)
This uses more locals than before, but is much simpler and avoids a bunch of corner cases and fuzz bugs the old one hit. We can optimize later if necessary.
Diffstat (limited to 'src/passes/DeadCodeElimination.cpp')
0 files changed, 0 insertions, 0 deletions