blob: a59ac924ba1ea7cff2dba798c8d4431fd3da66d3 (
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
45
46
47
48
49
50
|
(module
(type $0 (func (param i32 i32) (result i32)))
(type $1 (func (param i32 i32 i32 i32) (result i32)))
(memory $0 100 100)
(export "localcse" (func $basics))
(export "localcse-2" (func $8))
(func $basics (; 0 ;) (; has Stack IR ;) (type $0) (param $0 i32) (param $1 i32) (result i32)
(i32.add
(i32.add
(get_local $0)
(get_local $1)
)
(i32.add
(get_local $0)
(get_local $1)
)
)
)
(func $8 (; 1 ;) (; has Stack IR ;) (type $1) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(i32.store
(tee_local $2
(i32.add
(get_local $1)
(i32.const 4)
)
)
(i32.and
(i32.load
(get_local $2)
)
(i32.const -75)
)
)
(i32.store
(tee_local $1
(i32.add
(get_local $1)
(i32.const 4)
)
)
(i32.or
(i32.load
(get_local $1)
)
(i32.const 8)
)
)
(i32.const 0)
)
)
|