mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add InlineArrayType to support literals conversion to statically and dynamically allocated arrays.
This commit is contained in:
@@ -13,5 +13,5 @@ contract C {
|
||||
// ----
|
||||
// f(uint120[]): 0x20, 3, 1, 2, 3 -> 1
|
||||
// gas irOptimized: 112776
|
||||
// gas legacy: 113686
|
||||
// gas legacyOptimized: 113499
|
||||
// gas legacy: 113687
|
||||
// gas legacyOptimized: 113500
|
||||
|
||||
@@ -21,5 +21,5 @@ contract c {
|
||||
// ----
|
||||
// test() -> 2, 3, 4, 5
|
||||
// gas irOptimized: 136277
|
||||
// gas legacy: 147484
|
||||
// gas legacyOptimized: 146456
|
||||
// gas legacy: 147486
|
||||
// gas legacyOptimized: 146458
|
||||
|
||||
Reference in New Issue
Block a user