diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-05-08 07:57:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 07:57:49 -0700 |
commit | a5d33e7faaa965565f9ca1d0c23c3077389f2389 (patch) | |
tree | a28b5671771b43e05058ce18395bff4fac2d8c9c /src/wasm/wasm-emscripten.cpp | |
parent | 691cde4c8bed1a3694b6ae97160843736a204a1e (diff) | |
download | binaryen-a5d33e7faaa965565f9ca1d0c23c3077389f2389.tar.gz binaryen-a5d33e7faaa965565f9ca1d0c23c3077389f2389.tar.bz2 binaryen-a5d33e7faaa965565f9ca1d0c23c3077389f2389.zip |
More reducer improvements (#1533)
* Add a helper class to iterate over all a node's children, and use that when attempting to replace a node with its children.
* If a child has a different type than the parent, try to replace the parent with a conversion + the child (for example, a call may receive two f32 inputs and return an i32; we can try to replace the call with one of those f32s and a conversion to an i32).
* When possible, try to replace the function body with a child even if the child has a different type, by changing the function return value.
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
0 files changed, 0 insertions, 0 deletions