Skip to content

Commit c3781f7

Browse files
committed
Gas cost updates.
1 parent 1a9e66f commit c3781f7

25 files changed

+36
-36
lines changed

test/libsolidity/semanticTests/abiEncoderV1/struct/struct_storage_ptr.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ contract C {
2424
// ----
2525
// library: L
2626
// f() -> 8, 7, 1, 2, 7, 12
27-
// gas irOptimized: 166606
27+
// gas irOptimized: 166525
2828
// gas legacy: 169347
2929
// gas legacyOptimized: 167269

test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ contract C {
1818
// EVMVersion: >homestead
1919
// ----
2020
// h(uint256[2][]): 0x20, 3, 123, 124, 223, 224, 323, 324 -> 32, 256, 0x20, 3, 123, 124, 223, 224, 323, 324
21-
// gas irOptimized: 180882
21+
// gas irOptimized: 180768
2222
// gas legacy: 184929
2323
// gas legacyOptimized: 181504
2424
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
25-
// gas irOptimized: 112533
25+
// gas irOptimized: 112471
2626
// gas legacy: 115468
2727
// gas legacyOptimized: 112988

test/libsolidity/semanticTests/array/arrays_complex_from_and_to_storage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract Test {
1212
}
1313
// ----
1414
// set(uint24[3][]): 0x20, 0x06, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12 -> 0x06
15-
// gas irOptimized: 189640
15+
// gas irOptimized: 186766
1616
// gas legacy: 211149
1717
// gas legacyOptimized: 206054
1818
// data(uint256,uint256): 0x02, 0x02 -> 0x09

test/libsolidity/semanticTests/array/constant_var_as_array_length.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ contract C {
99

1010
// ----
1111
// constructor(): 1, 2, 3 ->
12-
// gas irOptimized: 141700
12+
// gas irOptimized: 141581
1313
// gas legacy: 183490
1414
// gas legacyOptimized: 151938
1515
// a(uint256): 0 -> 1

test/libsolidity/semanticTests/array/copying/array_copy_calldata_storage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ contract c {
2020
}
2121
// ----
2222
// store(uint256[9],uint8[3][]): 21, 22, 23, 24, 25, 26, 27, 28, 29, 0x140, 4, 1, 2, 3, 11, 12, 13, 21, 22, 23, 31, 32, 33 -> 32
23-
// gas irOptimized: 650748
23+
// gas irOptimized: 648324
2424
// gas legacy: 694515
2525
// gas legacyOptimized: 694013
2626
// retrieve() -> 9, 28, 9, 28, 4, 3, 32

test/libsolidity/semanticTests/array/copying/array_copy_cleanup_uint40.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ contract C {
4646
}
4747
// ----
4848
// f() -> true
49-
// gas irOptimized: 146913
49+
// gas irOptimized: 146936
5050
// gas legacy: 155961
5151
// gas legacyOptimized: 153588

test/libsolidity/semanticTests/array/copying/array_copy_clear_storage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ contract C {
1313
}
1414
// ----
1515
// f() -> 0
16-
// gas irOptimized: 134352
16+
// gas irOptimized: 134365
1717
// gas legacy: 135313
1818
// gas legacyOptimized: 134548

test/libsolidity/semanticTests/array/copying/array_copy_different_packing.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ contract c {
1919

2020
// ----
2121
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
22-
// gas irOptimized: 209152
22+
// gas irOptimized: 208149
2323
// gas legacy: 221856
2424
// gas legacyOptimized: 220680

test/libsolidity/semanticTests/array/copying/array_copy_nested_array.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ contract c {
1313

1414
// ----
1515
// test(uint256[2][]): 32, 3, 7, 8, 9, 10, 11, 12 -> 10
16-
// gas irOptimized: 689834
16+
// gas irOptimized: 689768
1717
// gas legacy: 686268
1818
// gas legacyOptimized: 685688

test/libsolidity/semanticTests/array/copying/array_nested_calldata_to_storage.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ contract c {
3838
// compileViaYul: true
3939
// ----
4040
// test1(uint256[][]): 0x20, 2, 0x40, 0x40, 2, 23, 42 -> 2, 65
41-
// gas irOptimized: 180723
41+
// gas irOptimized: 180766
4242
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
43-
// gas irOptimized: 157518
43+
// gas irOptimized: 157564
4444
// test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65
45-
// gas irOptimized: 134709
45+
// gas irOptimized: 134630
4646
// test4(uint256[2][2]): 23, 42, 23, 42 -> 65
47-
// gas irOptimized: 111324
47+
// gas irOptimized: 111268

0 commit comments

Comments
 (0)