mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rematerialize zero literals with default cleanup sequence
Add unused pruner step to the end of the default cleanup sequence
This commit is contained in:
@@ -15,7 +15,7 @@ contract D {
|
||||
}
|
||||
// ----
|
||||
// constructor(): 2 ->
|
||||
// gas irOptimized: 193567
|
||||
// gas irOptimized: 192703
|
||||
// gas legacy: 241234
|
||||
// gas legacyOptimized: 192961
|
||||
// f() -> 2
|
||||
|
||||
@@ -17,7 +17,7 @@ contract D {
|
||||
// EVMVersion: >=constantinople
|
||||
// ----
|
||||
// constructor(): 2 ->
|
||||
// gas irOptimized: 193730
|
||||
// gas irOptimized: 192866
|
||||
// gas legacy: 241606
|
||||
// gas legacyOptimized: 193193
|
||||
// f() -> 2
|
||||
|
||||
@@ -22,7 +22,7 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// constructor(), 1 ether ->
|
||||
// gas irOptimized: 265110
|
||||
// gas irOptimized: 262355
|
||||
// gas legacy: 441442
|
||||
// gas legacyOptimized: 292862
|
||||
// f(uint256): 0 -> FAILURE
|
||||
|
||||
@@ -17,7 +17,7 @@ contract C {
|
||||
// EVMVersion: >=byzantium
|
||||
// ----
|
||||
// constructor(), 20 wei
|
||||
// gas irOptimized: 171806
|
||||
// gas irOptimized: 166148
|
||||
// gas legacy: 285547
|
||||
// gas legacyOptimized: 168515
|
||||
// f(uint256): 20 -> 0x137aa4dfc0911524504fcd4d98501f179bc13b4a
|
||||
|
||||
@@ -38,7 +38,7 @@ contract test {
|
||||
}
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// gas irOptimized: 253950
|
||||
// gas irOptimized: 252642
|
||||
// gas legacy: 391588
|
||||
// gas legacyOptimized: 268089
|
||||
// sendAmount(uint256): 5 -> 5
|
||||
|
||||
@@ -37,7 +37,7 @@ contract test {
|
||||
}
|
||||
// ----
|
||||
// constructor(), 20 wei ->
|
||||
// gas irOptimized: 253950
|
||||
// gas irOptimized: 252642
|
||||
// gas legacy: 391588
|
||||
// gas legacyOptimized: 268089
|
||||
// sendAmount(uint256): 5 -> 5
|
||||
|
||||
Reference in New Issue
Block a user