summaryrefslogtreecommitdiff
path: root/test/debugInfo.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-11-27 09:26:29 -0800
committerGitHub <noreply@github.com>2018-11-27 09:26:29 -0800
commit70b949ffdc3e5f3fa83dd4044f632c95159674cf (patch)
treec2bb05065cd082305cad594e76a169d1a8005a9a /test/debugInfo.fromasm.imprecise
parent69c93dd9fb4cf8081237c4303a416bf12dff6b58 (diff)
downloadbinaryen-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/debugInfo.fromasm.imprecise')
-rw-r--r--test/debugInfo.fromasm.imprecise2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/debugInfo.fromasm.imprecise b/test/debugInfo.fromasm.imprecise
index a0468d1f5..f8734889f 100644
--- a/test/debugInfo.fromasm.imprecise
+++ b/test/debugInfo.fromasm.imprecise
@@ -96,8 +96,8 @@
)
(if
(i32.ne
- (get_local $2)
(get_local $0)
+ (get_local $2)
)
(block
(set_local $4