diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-11-27 09:26:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 09:26:29 -0800 |
commit | 70b949ffdc3e5f3fa83dd4044f632c95159674cf (patch) | |
tree | c2bb05065cd082305cad594e76a169d1a8005a9a /test/two_sides.fromasm.imprecise | |
parent | 69c93dd9fb4cf8081237c4303a416bf12dff6b58 (diff) | |
download | binaryen-70b949ffdc3e5f3fa83dd4044f632c95159674cf.tar.gz binaryen-70b949ffdc3e5f3fa83dd4044f632c95159674cf.tar.bz2 binaryen-70b949ffdc3e5f3fa83dd4044f632c95159674cf.zip |
Stricter Canonicalization (#1774)
In OptimizeInstructions we canonicalized a const on the right side. This PR adds further canonicalization, of a get to the right, and of sorting by binary and unary op ids. This guarantees fixed orders for small combinations of instructions that can then be pattern-matched in a simple way in future PRs.
Diffstat (limited to 'test/two_sides.fromasm.imprecise')
-rw-r--r-- | test/two_sides.fromasm.imprecise | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/two_sides.fromasm.imprecise b/test/two_sides.fromasm.imprecise index 9115e679a..09aa8270d 100644 --- a/test/two_sides.fromasm.imprecise +++ b/test/two_sides.fromasm.imprecise @@ -13,8 +13,8 @@ (tee_local $5 (f64.convert_s/i32 (i32.mul - (get_local $1) (get_local $0) + (get_local $1) ) ) ) @@ -36,8 +36,8 @@ (tee_local $5 (f64.convert_s/i32 (i32.mul - (get_local $3) (get_local $2) + (get_local $3) ) ) ) |