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_O2_hello_world.fromasm | |
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_O2_hello_world.fromasm')
-rw-r--r-- | test/emcc_O2_hello_world.fromasm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/emcc_O2_hello_world.fromasm b/test/emcc_O2_hello_world.fromasm index 0bc4edf68..082240fc4 100644 --- a/test/emcc_O2_hello_world.fromasm +++ b/test/emcc_O2_hello_world.fromasm @@ -5966,12 +5966,9 @@ (if (i32.lt_u (tee_local $1 - (i32.add + (i32.sub (get_local $1) - (i32.sub - (i32.const 0) - (get_local $11) - ) + (get_local $11) ) ) (get_local $14) |