File tree Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Expand file tree Collapse file tree 2 files changed +16
-24
lines changed Original file line number Diff line number Diff line change @@ -1546,12 +1546,12 @@ export class Module {
1546
1546
// passes.push("post-assemblyscript");
1547
1547
// }
1548
1548
passes . push ( "optimize-instructions" ) ;
1549
- passes . push ( "remove-unused-brs" ) ;
1550
- passes . push ( "remove-unused-names" ) ;
1551
1549
if ( optimizeLevel >= 3 || shrinkLevel >= 1 ) {
1552
1550
passes . push ( "dce" ) ;
1553
1551
passes . push ( "inlining" ) ;
1554
1552
}
1553
+ passes . push ( "remove-unused-brs" ) ;
1554
+ passes . push ( "remove-unused-names" ) ;
1555
1555
if ( optimizeLevel >= 3 || shrinkLevel >= 2 ) {
1556
1556
passes . push ( "precompute-propagate" ) ;
1557
1557
} else {
Original file line number Diff line number Diff line change 35
35
if
36
36
local.get $0
37
37
i32.const 2
38
- i32.eq
39
- if
40
- i32.const 1088
41
- i32.const 1040
42
- i32.const 24
43
- i32.const 22
44
- call $~lib/builtins/abort
45
- unreachable
46
- else
47
- br $while-continue|0
48
- end
38
+ i32.ne
39
+ br_if $while-continue|0
40
+ i32.const 1088
41
+ i32.const 1040
42
+ i32.const 24
43
+ i32.const 22
44
+ call $~lib/builtins/abort
49
45
unreachable
50
46
end
51
47
end
89
85
if
90
86
local.get $0
91
87
i32.const 2
92
- i32.eq
93
- if
94
- i32.const 1088
95
- i32.const 1040
96
- i32.const 78
97
- i32.const 22
98
- call $~lib/builtins/abort
99
- unreachable
100
- else
101
- br $do-continue|0
102
- end
88
+ i32.ne
89
+ br_if $do-continue|0
90
+ i32.const 1088
91
+ i32.const 1040
92
+ i32.const 78
93
+ i32.const 22
94
+ call $~lib/builtins/abort
103
95
unreachable
104
96
end
105
97
end
You can’t perform that action at this time.
0 commit comments