diff options
Diffstat (limited to 'test/passes/duplicate-function-elimination.txt')
| -rw-r--r-- | test/passes/duplicate-function-elimination.txt | 254 |
1 files changed, 127 insertions, 127 deletions
diff --git a/test/passes/duplicate-function-elimination.txt b/test/passes/duplicate-function-elimination.txt index 3ffe3b7ba..9499b0011 100644 --- a/test/passes/duplicate-function-elimination.txt +++ b/test/passes/duplicate-function-elimination.txt @@ -1,26 +1,26 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (nop) ) ) (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (nop) ) ) (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (i32.const 0) ) @@ -29,12 +29,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i32.const 1) ) @@ -48,10 +48,10 @@ (export "keep2" (func $keep2)) (export "other" (func $keep2)) (start $keep2) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (nop) ) - (func $caller (type $0) + (func $caller (; 1 ;) (type $0) (call $keep2) (call $keep2) ) @@ -59,26 +59,26 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2-after-two-passes (type $0) + (func $keep2-after-two-passes (; 0 ;) (type $0) (nop) ) - (func $keep-caller (type $0) + (func $keep-caller (; 1 ;) (type $0) (call $keep2-after-two-passes) ) ) (module (type $0 (func)) (memory $0 0) - (func $keep-4 (type $0) + (func $keep-4 (; 0 ;) (type $0) (nop) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (unreachable) ) - (func $keep-caller (type $0) + (func $keep-caller (; 2 ;) (type $0) (call $keep-4) ) - (func $other-caller (type $0) + (func $other-caller (; 3 ;) (type $0) (call $other) ) ) @@ -88,20 +88,20 @@ (type $2 (func)) (type $3 (func (param i32))) (memory $0 0) - (func $keep4-similar-but-func-sig-differs (type $2) + (func $keep4-similar-but-func-sig-differs (; 0 ;) (type $2) (drop (i32.const 0) ) ) - (func $other1 (type $3) (param $i i32) + (func $other1 (; 1 ;) (type $3) (param $i i32) (drop (i32.const 0) ) ) - (func $other2 (type $T) (result i32) + (func $other2 (; 2 ;) (type $T) (result i32) (i32.const 0) ) - (func $other3 (type $S) (result i32) + (func $other3 (; 3 ;) (type $S) (result i32) (i32.const 0) ) ) @@ -109,22 +109,22 @@ (type $S (func (result i32))) (type $1 (func (param i32))) (memory $0 0) - (func $keep2-similar-but-func-sig-differs (type $1) (param $i i32) + (func $keep2-similar-but-func-sig-differs (; 0 ;) (type $1) (param $i i32) (drop (i32.const 0) ) ) - (func $other2 (type $S) (result i32) + (func $other2 (; 1 ;) (type $S) (result i32) (i32.const 0) ) ) (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (nop) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (nop) (nop) ) @@ -132,7 +132,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (block $block0 ) ) @@ -140,11 +140,11 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $block0 ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $block0 (nop) ) @@ -153,7 +153,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (block $block0 (nop) ) @@ -162,12 +162,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $block0 (nop) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $block0 (nop) (unreachable) @@ -177,12 +177,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $block0 (nop) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $block0 (unreachable) ) @@ -191,7 +191,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase-since-block-names-do-not-matter (type $0) + (func $erase-since-block-names-do-not-matter (; 0 ;) (type $0) (block $foo ) ) @@ -199,7 +199,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase-since-block-names-do-not-matter (type $0) + (func $erase-since-block-names-do-not-matter (; 0 ;) (type $0) (block $foo (br $foo) (br_table $foo $foo @@ -211,7 +211,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $foo (block $block (drop @@ -221,7 +221,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $bar (block $block (drop @@ -235,14 +235,14 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $foo (br_if $foo (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $bar (br_if $bar (i32.const 1) @@ -253,7 +253,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (block $foo (br_if $foo (i32.const 0) @@ -264,14 +264,14 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $foo (br_table $foo $foo (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $bar (br_table $bar $bar (i32.const 1) @@ -282,7 +282,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (loop $bar (nop) ) @@ -291,7 +291,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (block $foo (result i32) (br_table $foo $foo @@ -301,7 +301,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (block $bar (result i32) (br_table $bar $bar @@ -315,7 +315,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (block $foo (block $bar (br_table $foo $bar @@ -328,7 +328,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (block $foo (block $bar (br_table $foo $bar @@ -337,7 +337,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (block $bar (block $foo (br_table $foo $bar @@ -350,17 +350,17 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (call $erase) ) ) (module (type $0 (func)) (memory $0 0) - (func $keep2-but-in-theory-we-could-erase (type $0) + (func $keep2-but-in-theory-we-could-erase (; 0 ;) (type $0) (call $keep2-but-in-theory-we-could-erase) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (call $other) ) ) @@ -369,7 +369,7 @@ (import "env" "i" (func $i)) (import "env" "j" (func $j)) (memory $0 0) - (func $erase (type $FUNCSIG$v) + (func $erase (; 2 ;) (type $FUNCSIG$v) (call $i) ) ) @@ -378,10 +378,10 @@ (import "env" "i" (func $i)) (import "env" "j" (func $j)) (memory $0 0) - (func $keep2 (type $FUNCSIG$v) + (func $keep2 (; 2 ;) (type $FUNCSIG$v) (call $i) ) - (func $other (type $FUNCSIG$v) + (func $other (; 3 ;) (type $FUNCSIG$v) (call $j) ) ) @@ -390,7 +390,7 @@ (table 2 2 anyfunc) (elem (i32.const 0) $erase $erase) (memory $0 0) - (func $erase (type $T) + (func $erase (; 0 ;) (type $T) (call_indirect $T (i32.const 0) ) @@ -401,12 +401,12 @@ (table 2 2 anyfunc) (elem (i32.const 0) $keep2 $other) (memory $0 0) - (func $keep2 (type $T) + (func $keep2 (; 0 ;) (type $T) (call_indirect $T (i32.const 0) ) ) - (func $other (type $T) + (func $other (; 1 ;) (type $T) (call_indirect $T (i32.const 1) ) @@ -418,12 +418,12 @@ (table 2 2 anyfunc) (elem (i32.const 0) $keep2 $other) (memory $0 0) - (func $keep2 (type $T) + (func $keep2 (; 0 ;) (type $T) (call_indirect $T (i32.const 0) ) ) - (func $other (type $T) + (func $other (; 1 ;) (type $T) (call_indirect $S (i32.const 0) ) @@ -432,7 +432,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase-even-locals-with-different-names (type $0) + (func $erase-even-locals-with-different-names (; 0 ;) (type $0) (local $i i32) (drop (get_local $i) @@ -442,13 +442,13 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (local $i i32) (drop (get_local $i) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (local $j i64) (drop (get_local $j) @@ -458,7 +458,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase-even-locals-with-different-names (type $0) + (func $erase-even-locals-with-different-names (; 0 ;) (type $0) (local $i i32) (set_local $i (i32.const 0) @@ -468,13 +468,13 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (local $i i32) (set_local $i (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (local $j i64) (set_local $j (i64.const 0) @@ -484,13 +484,13 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (local $i i32) (set_local $i (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (local $j i32) (set_local $j (i32.const 1) @@ -500,7 +500,7 @@ (module (type $0 (func)) (memory $0 10) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (i32.load (i32.const 0) @@ -516,14 +516,14 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.load offset=3 (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i32.load16_s offset=3 (i32.const 0) @@ -534,14 +534,14 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.load16_s offset=3 (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i32.load16_s offset=3 align=1 (i32.const 0) @@ -552,14 +552,14 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.load16_s (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i32.load16_s offset=3 (i32.const 0) @@ -570,14 +570,14 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.load16_s offset=3 (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i32.load16_s offset=3 (i32.const 1) @@ -588,14 +588,14 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.load16_u offset=3 (i32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i32.load16_s offset=3 (i32.const 0) @@ -606,7 +606,7 @@ (module (type $0 (func)) (memory $0 10) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (i32.store (i32.const 0) (i32.const 100) @@ -620,13 +620,13 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (i32.store offset=3 (i32.const 0) (i32.const 100) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (i32.store16 offset=3 (i32.const 0) (i32.const 100) @@ -636,13 +636,13 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (i32.store16 offset=3 (i32.const 0) (i32.const 100) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (i32.store16 offset=3 align=1 (i32.const 0) (i32.const 100) @@ -652,13 +652,13 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (i32.store16 (i32.const 0) (i32.const 100) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (i32.store16 offset=3 (i32.const 0) (i32.const 100) @@ -668,13 +668,13 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (i32.store16 offset=3 (i32.const 0) (i32.const 100) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (i32.store16 offset=3 (i32.const 1) (i32.const 100) @@ -684,13 +684,13 @@ (module (type $0 (func)) (memory $0 10) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (i32.store16 offset=3 (i32.const 0) (i32.const 100) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (i32.store16 offset=3 (i32.const 0) (i32.const 101) @@ -700,12 +700,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i64.const 0) ) @@ -714,12 +714,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.const 0) ) @@ -728,12 +728,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i32.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f64.const 0) ) @@ -742,12 +742,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (i64.const 0) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (i64.const 1) ) @@ -756,12 +756,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f32.const 0.10000000149011612) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.const -0.10000000149011612) ) @@ -770,12 +770,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f64.const 0.1) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f64.const 0.2) ) @@ -784,7 +784,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (f32.abs (f32.const 0) @@ -795,14 +795,14 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f32.abs (f32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.abs (f32.const 1) @@ -813,14 +813,14 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f32.abs (f32.const 0) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.neg (f32.const 0) @@ -831,7 +831,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (f32.add (f32.const 0) @@ -843,7 +843,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f32.add (f32.const 0) @@ -851,7 +851,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.add (f32.const 0) @@ -863,7 +863,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f32.add (f32.const 0) @@ -871,7 +871,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.add (f32.const 1) @@ -883,7 +883,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep2 (type $0) + (func $keep2 (; 0 ;) (type $0) (drop (f32.add (f32.const 0) @@ -891,7 +891,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (f32.sub (f32.const 0) @@ -903,7 +903,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (select (i32.const 0) @@ -916,7 +916,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep (type $0) + (func $keep (; 0 ;) (type $0) (drop (select (i32.const 0) @@ -925,7 +925,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (select (i32.const 1) @@ -938,7 +938,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep (type $0) + (func $keep (; 0 ;) (type $0) (drop (select (i32.const 0) @@ -947,7 +947,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (select (i32.const 0) @@ -960,7 +960,7 @@ (module (type $0 (func)) (memory $0 0) - (func $keep (type $0) + (func $keep (; 0 ;) (type $0) (drop (select (i32.const 0) @@ -969,7 +969,7 @@ ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (select (i32.const 0) @@ -982,14 +982,14 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (return) ) ) (module (type $0 (func (result i32))) (memory $0 0) - (func $erase (type $0) (result i32) + (func $erase (; 0 ;) (type $0) (result i32) (return (i32.const 0) ) @@ -998,12 +998,12 @@ (module (type $0 (func (result i32))) (memory $0 0) - (func $keep (type $0) (result i32) + (func $keep (; 0 ;) (type $0) (result i32) (return (i32.const 0) ) ) - (func $other (type $0) (result i32) + (func $other (; 1 ;) (type $0) (result i32) (return (i32.const 1) ) @@ -1012,7 +1012,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (current_memory) ) @@ -1021,7 +1021,7 @@ (module (type $0 (func)) (memory $0 0) - (func $erase (type $0) + (func $erase (; 0 ;) (type $0) (drop (grow_memory (i32.const 10) @@ -1032,14 +1032,14 @@ (module (type $0 (func)) (memory $0 0) - (func $keep (type $0) + (func $keep (; 0 ;) (type $0) (drop (grow_memory (i32.const 10) ) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (grow_memory (i32.const 11) @@ -1050,12 +1050,12 @@ (module (type $0 (func)) (memory $0 0) - (func $keep (type $0) + (func $keep (; 0 ;) (type $0) (drop (current_memory) ) ) - (func $other (type $0) + (func $other (; 1 ;) (type $0) (drop (grow_memory (i32.const 10) |
