summaryrefslogtreecommitdiff
path: root/test/passes/remove-unused-brs_generate-stack-ir_print-stack-ir.txt
blob: 80c850db5849ff03a4af5c4c37e01c1ee35345ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
(module
 (type $0 (func (param i64)))
 (func $0 (; 0 ;) (type $0) (param $var$0 i64)
  block $label$1
   block $label$2
    loop $label$3
     block $label$4
      unreachable
      unreachable
     end
     unreachable
     local.tee $var$0
     unreachable
     unreachable
    end
    unreachable
    unreachable
    unreachable
   end
   unreachable
   br_if $label$1
   unreachable
  end
 )
)
(module
 (type $0 (func (param i64)))
 (func $0 (; 0 ;) (; has Stack IR ;) (type $0) (param $var$0 i64)
  (block $label$1
   (br_if $label$1
    (block $label$2
     (loop $label$3
      (local.tee $var$0
       (block $label$4
        (unreachable)
       )
      )
     )
     (unreachable)
    )
   )
  )
 )
)