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/unit.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/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index 04794f28f..b5da4cfe4 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -360,10 +360,10 @@ (i32.add (i32.add (i32.add - (get_local $0) (call $lb (i32.const 3) ) + (get_local $0) ) (block (result i32) (drop @@ -702,13 +702,13 @@ ) (br_if $while-in (i32.eq + (get_local $1) (tee_local $0 (i32.add (get_local $0) (i32.const 1) ) ) - (get_local $1) ) ) ) |