File tree Expand file tree Collapse file tree 5 files changed +3502
-3510
lines changed Expand file tree Collapse file tree 5 files changed +3502
-3510
lines changed Original file line number Diff line number Diff line change @@ -1581,9 +1581,6 @@ export class Module {
1581
1581
passes . push ( "merge-locals" ) ;
1582
1582
}
1583
1583
passes . push ( "vacuum" ) ;
1584
- if ( optimizeLevel >= 3 || shrinkLevel >= 1 ) {
1585
- passes . push ( "code-folding" ) ;
1586
- }
1587
1584
if ( optimizeLevel >= 2 || shrinkLevel >= 1 ) {
1588
1585
passes . push ( "simplify-globals-optimizing" ) ;
1589
1586
}
@@ -1622,6 +1619,9 @@ export class Module {
1622
1619
passes . push ( "simplify-globals" ) ;
1623
1620
passes . push ( "vacuum" ) ;
1624
1621
}
1622
+ if ( optimizeLevel >= 3 || shrinkLevel >= 1 ) {
1623
+ passes . push ( "code-folding" ) ;
1624
+ }
1625
1625
// precompute works best after global optimizations
1626
1626
if ( optimizeLevel >= 2 || shrinkLevel >= 1 ) {
1627
1627
passes . push ( "precompute-propagate" ) ;
Original file line number Diff line number Diff line change 5648
5648
(local $2 i32 )
5649
5649
(local $3 i32 )
5650
5650
(local $4 i32 )
5651
- local.get $1
5652
- call $~lib/rt/pure/__retain
5653
- local.set $4
5654
5651
block $folding-inner0
5652
+ local.get $1
5653
+ call $~lib/rt/pure/__retain
5654
+ local.set $4
5655
5655
local.get $0
5656
5656
i32.load offset = 12
5657
5657
local.tee $2
@@ -18846,10 +18846,10 @@
18846
18846
(local $2 i32 )
18847
18847
(local $3 i32 )
18848
18848
(local $4 i32 )
18849
- local.get $1
18850
- call $~lib/rt/pure/__retain
18851
- local.set $4
18852
18849
block $folding-inner0
18850
+ local.get $1
18851
+ call $~lib/rt/pure/__retain
18852
+ local.set $4
18853
18853
local.get $0
18854
18854
i32.load offset = 12
18855
18855
local.tee $2
Original file line number Diff line number Diff line change 1376
1376
(local $4 i32 )
1377
1377
(local $5 i32 )
1378
1378
(local $6 i32 )
1379
- local.get $0
1380
- i32.const 8
1381
- i32.shr_u
1382
- local.tee $2
1383
- i32.const 5672
1384
- i32.add
1385
- i32.load8_u
1386
- local.get $2
1387
- i32.const 2032
1388
- i32.add
1389
- i32.load8_u
1390
- i32.const 86
1391
- i32.mul
1392
- i32.const 2032
1393
- i32.add
1394
- local.get $0
1395
- i32.const 255
1396
- i32.and
1397
- local.tee $5
1398
- i32.const 3
1399
- i32.div_u
1400
- i32.add
1401
- i32.load8_u
1402
- local.get $5
1403
- i32.const 3
1404
- i32.rem_u
1405
- i32.const 2
1406
- i32.shl
1407
- i32.const 4700
1408
- i32.add
1409
- i32.load
1410
- i32.mul
1411
- i32.const 11
1412
- i32.shr_u
1413
- i32.const 6
1414
- i32.rem_u
1415
- i32.add
1416
- i32.const 2
1417
- i32.shl
1418
- i32.const 4712
1419
- i32.add
1420
- i32.load
1421
- local.tee $2
1422
- i32.const 8
1423
- i32.shr_s
1424
- local.set $3
1425
1379
block $folding-inner0
1380
+ local.get $0
1381
+ i32.const 8
1382
+ i32.shr_u
1383
+ local.tee $2
1384
+ i32.const 5672
1385
+ i32.add
1386
+ i32.load8_u
1387
+ local.get $2
1388
+ i32.const 2032
1389
+ i32.add
1390
+ i32.load8_u
1391
+ i32.const 86
1392
+ i32.mul
1393
+ i32.const 2032
1394
+ i32.add
1395
+ local.get $0
1396
+ i32.const 255
1397
+ i32.and
1398
+ local.tee $5
1399
+ i32.const 3
1400
+ i32.div_u
1401
+ i32.add
1402
+ i32.load8_u
1403
+ local.get $5
1404
+ i32.const 3
1405
+ i32.rem_u
1406
+ i32.const 2
1407
+ i32.shl
1408
+ i32.const 4700
1409
+ i32.add
1410
+ i32.load
1411
+ i32.mul
1412
+ i32.const 11
1413
+ i32.shr_u
1414
+ i32.const 6
1415
+ i32.rem_u
1416
+ i32.add
1417
+ i32.const 2
1418
+ i32.shl
1419
+ i32.const 4712
1420
+ i32.add
1421
+ i32.load
1422
+ local.tee $2
1423
+ i32.const 8
1424
+ i32.shr_s
1425
+ local.set $3
1426
1426
local.get $2
1427
1427
i32.const 255
1428
1428
i32.and
You can’t perform that action at this time.
0 commit comments