diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-03-07 17:13:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 17:13:02 -0800 |
commit | d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef (patch) | |
tree | c005e77373453477401b35ef3631de59704a053d /test/emcc_hello_world.fromasm.imprecise | |
parent | 1a5b410701542413f497b3030c0b87f3600dc1bc (diff) | |
download | binaryen-d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef.tar.gz binaryen-d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef.tar.bz2 binaryen-d8bcf64e48f2c33dc785b16c8d3c0b8f5ccc63ef.zip |
Optimize away sets of the same local (#1940)
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r-- | test/emcc_hello_world.fromasm.imprecise | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise index 3e6c03d49..fe4884027 100644 --- a/test/emcc_hello_world.fromasm.imprecise +++ b/test/emcc_hello_world.fromasm.imprecise @@ -1967,6 +1967,9 @@ (local $47 i32) (local $48 i32) (local $49 i32) + (local.set $4 + (i32.const 672) + ) (local.set $28 (global.get $STACKTOP) ) @@ -2012,7 +2015,7 @@ (local.set $38 (local.tee $25 (i32.add - (local.tee $4 + (local.tee $19 (i32.add (local.get $13) (i32.const 536) @@ -2024,13 +2027,13 @@ ) (local.set $39 (i32.add - (local.get $4) + (local.get $19) (i32.const 39) ) ) (local.set $33 (i32.add - (local.tee $4 + (local.tee $19 (i32.add (local.get $13) (i32.const 576) @@ -2041,7 +2044,7 @@ ) (local.set $40 (i32.add - (local.get $4) + (local.get $19) (i32.const 11) ) ) @@ -2097,8 +2100,8 @@ (i32.const 8) ) ) - (local.set $4 - (i32.const 672) + (local.set $19 + (i32.const 0) ) (block $label$break$L343 (block $__rjti$9 @@ -6519,7 +6522,7 @@ ) (loop $while-in130 (if - (local.tee $19 + (local.tee $4 (i32.load (i32.add (i32.shl @@ -6539,7 +6542,7 @@ ) (local.get $2) ) - (local.get $19) + (local.get $4) (local.get $1) ) (br_if $while-in130 |