mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Optimizer rules that combine shifts and masks.
This commit is contained in:
@@ -27,29 +27,29 @@ contract Large {
|
||||
// optimize-runs: 2
|
||||
// ----
|
||||
// creation:
|
||||
// codeDepositCost: 261800
|
||||
// codeDepositCost: 260400
|
||||
// executionCost: 300
|
||||
// totalCost: 262100
|
||||
// totalCost: 260700
|
||||
// external:
|
||||
// a(): 398
|
||||
// b(uint256): 1105
|
||||
// f0(uint256): 334
|
||||
// f1(uint256): 40886
|
||||
// f2(uint256): 20952
|
||||
// f3(uint256): 21040
|
||||
// f4(uint256): 21018
|
||||
// f5(uint256): 20996
|
||||
// f6(uint256): 20908
|
||||
// f7(uint256): 20688
|
||||
// f8(uint256): 20820
|
||||
// f9(uint256): 20842
|
||||
// f1(uint256): 40874
|
||||
// f2(uint256): 20940
|
||||
// f3(uint256): 21028
|
||||
// f4(uint256): 21006
|
||||
// f5(uint256): 20984
|
||||
// f6(uint256): 20896
|
||||
// f7(uint256): 20676
|
||||
// f8(uint256): 20808
|
||||
// f9(uint256): 20830
|
||||
// g0(uint256): 574
|
||||
// g1(uint256): 40598
|
||||
// g2(uint256): 20686
|
||||
// g3(uint256): 20774
|
||||
// g4(uint256): 20752
|
||||
// g5(uint256): 20840
|
||||
// g6(uint256): 20620
|
||||
// g7(uint256): 20730
|
||||
// g8(uint256): 20708
|
||||
// g9(uint256): 20554
|
||||
// g1(uint256): 40586
|
||||
// g2(uint256): 20674
|
||||
// g3(uint256): 20762
|
||||
// g4(uint256): 20740
|
||||
// g5(uint256): 20828
|
||||
// g6(uint256): 20608
|
||||
// g7(uint256): 20718
|
||||
// g8(uint256): 20696
|
||||
// g9(uint256): 20542
|
||||
|
||||
@@ -14,16 +14,16 @@ contract Medium {
|
||||
// optimize-runs: 2
|
||||
// ----
|
||||
// creation:
|
||||
// codeDepositCost: 142200
|
||||
// executionCost: 190
|
||||
// totalCost: 142390
|
||||
// codeDepositCost: 140800
|
||||
// executionCost: 183
|
||||
// totalCost: 140983
|
||||
// external:
|
||||
// a(): 398
|
||||
// b(uint256): 863
|
||||
// f1(uint256): 40666
|
||||
// f2(uint256): 20710
|
||||
// f3(uint256): 20754
|
||||
// f1(uint256): 40654
|
||||
// f2(uint256): 20698
|
||||
// f3(uint256): 20742
|
||||
// g0(uint256): 332
|
||||
// g7(uint256): 20620
|
||||
// g8(uint256): 20598
|
||||
// g9(uint256): 20554
|
||||
// g7(uint256): 20608
|
||||
// g8(uint256): 20586
|
||||
// g9(uint256): 20542
|
||||
|
||||
@@ -9,11 +9,11 @@ contract Small {
|
||||
// optimize-runs: 2
|
||||
// ----
|
||||
// creation:
|
||||
// codeDepositCost: 65400
|
||||
// executionCost: 117
|
||||
// totalCost: 65517
|
||||
// codeDepositCost: 60400
|
||||
// executionCost: 111
|
||||
// totalCost: 60511
|
||||
// external:
|
||||
// fallback: 118
|
||||
// a(): 376
|
||||
// b(uint256): 753
|
||||
// f1(uint256): 40600
|
||||
// f1(uint256): 40588
|
||||
|
||||
Reference in New Issue
Block a user