diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-01-17 21:20:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 21:20:53 -0800 |
commit | 14cb0c01ee22fbcd2923db0502e11b1fc51df05d (patch) | |
tree | eb4c6c854a803482c2891e7235ea8700886d289c /test/emcc_hello_world.fromasm.imprecise | |
parent | 692069c6eef63754c27e815fd948fea6185d7619 (diff) | |
download | binaryen-14cb0c01ee22fbcd2923db0502e11b1fc51df05d.tar.gz binaryen-14cb0c01ee22fbcd2923db0502e11b1fc51df05d.tar.bz2 binaryen-14cb0c01ee22fbcd2923db0502e11b1fc51df05d.zip |
optimize out 0-x, a zero only used to negate an int, when possible (#1365)
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r-- | test/emcc_hello_world.fromasm.imprecise | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise index d932b35eb..34f3e1c95 100644 --- a/test/emcc_hello_world.fromasm.imprecise +++ b/test/emcc_hello_world.fromasm.imprecise @@ -13263,14 +13263,11 @@ (if (i32.lt_u (tee_local $1 - (i32.add + (i32.sub (get_local $1) - (i32.sub - (i32.const 0) - (tee_local $8 - (i32.load - (get_local $1) - ) + (tee_local $8 + (i32.load + (get_local $1) ) ) ) |