summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-05-08 07:57:49 -0700
committerGitHub <noreply@github.com>2018-05-08 07:57:49 -0700
commita5d33e7faaa965565f9ca1d0c23c3077389f2389 (patch)
treea28b5671771b43e05058ce18395bff4fac2d8c9c /src/wasm.h
parent691cde4c8bed1a3694b6ae97160843736a204a1e (diff)
downloadbinaryen-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.h')
-rw-r--r--src/wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 6277d32fc..45881e519 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -196,8 +196,8 @@ public:
HostId,
NopId,
UnreachableId,
- AtomicCmpxchgId,
AtomicRMWId,
+ AtomicCmpxchgId,
AtomicWaitId,
AtomicWakeId,
NumExpressionIds