diff options
author | Alon Zakai <azakai@google.com> | 2019-03-06 14:21:07 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2019-03-06 16:34:34 -0800 |
commit | 7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236 (patch) | |
tree | ad2a1c076f5f450a2a9aaee6c4077bff0108971e /test/emcc_hello_world.fromasm.imprecise | |
parent | 83aa0dc2daf327ed264cc22e51af1a866787a764 (diff) | |
download | binaryen-7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236.tar.gz binaryen-7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236.tar.bz2 binaryen-7e56e5b9eb08a68631d98f6d0d7db2adc2cd8236.zip |
CoalesceLocals: run even if we have just 1 var, as we may be able to remove that one var by reusing a param
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r-- | test/emcc_hello_world.fromasm.imprecise | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise index 383826f85..3e6c03d49 100644 --- a/test/emcc_hello_world.fromasm.imprecise +++ b/test/emcc_hello_world.fromasm.imprecise @@ -1792,12 +1792,12 @@ ) ) (func $___syscall_ret (; 41 ;) (; has Stack IR ;) (param $0 i32) (result i32) - (if (result i32) + (if (i32.gt_u (local.get $0) (i32.const -4096) ) - (block (result i32) + (block (i32.store (call $___errno_location) (i32.sub @@ -1805,10 +1805,12 @@ (local.get $0) ) ) - (i32.const -1) + (local.set $0 + (i32.const -1) + ) ) - (local.get $0) ) + (local.get $0) ) (func $___fflush_unlocked (; 42 ;) (; has Stack IR ;) (param $0 i32) (result i32) (local $1 i32) @@ -14322,7 +14324,6 @@ ) ) (func $_i64Add (; 52 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) - (local $4 i32) (global.set $tempRet0 (i32.add (i32.add @@ -14330,7 +14331,7 @@ (local.get $3) ) (i32.lt_u - (local.tee $4 + (local.tee $1 (i32.add (local.get $0) (local.get $2) @@ -14340,7 +14341,7 @@ ) ) ) - (local.get $4) + (local.get $1) ) (func $_memset (; 53 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (local $3 i32) |