Skip to content

Commit 85adca6

Browse files
author
Mohammad Rezaei
committed
remove runs based heuristic
1 parent 693d5aa commit 85adca6

File tree

98 files changed

+250
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+250
-253
lines changed

Diff for: Changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Language Features:
44

55

66
Compiler Features:
7-
* Constant Optimizer: Compute masks using shifts when optimizing for size; use an ``--optimizer-runs`` value less than 200 for maximum size reduction.
7+
* Constant Optimizer: Compute masks using shifts when optimizing for size.
88

99
Bugfixes:
1010
* SMTChecker: Fix incorrect analysis when only a subset of contracts is selected with `--model-checker-contracts`.

Diff for: libevmasm/ConstantOptimiser.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -257,14 +257,11 @@ AssemblyItems ComputeMethod::findRepresentation(u256 const& _value)
257257
// check for masks first
258258
unsigned lowZeros = 0;
259259
unsigned highOnes = 0;
260-
//only fully optimize for size if the compiler parameters are not default of 200
261-
unsigned threshold1 = m_params.runs < 200 ? 32 : 128;
262-
unsigned threshold2 = m_params.runs < 200 ? 16 : 128;
263260
for (; ((_value >> lowZeros) & 1) == 0 && lowZeros < 256; lowZeros++) {}
264261
for (; ((_value >> (lowZeros + highOnes)) & 1) == 1 && highOnes < 256; highOnes++) {}
265-
if (m_params.evmVersion.hasBitwiseShifting() && highOnes > threshold1 &&
262+
if (m_params.evmVersion.hasBitwiseShifting() && highOnes > 32 &&
266263
((_value >> (lowZeros + highOnes)) == 0) &&
267-
((lowZeros + highOnes < 256) || lowZeros > threshold2))
264+
((lowZeros + highOnes < 256) || lowZeros > 16))
268265
{
269266
// this is a big enough mask to use zero negation
270267
AssemblyItems newRoutine = AssemblyItems{u256(0), Instruction::NOT};

Diff for: test/cmdlineTests/optimizer_inliner_dynamic_reference/output

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ sub_0: assembly {
8484
/* "optimizer_inliner_dynamic_reference/input.sol":147:152 x = f */
8585
dup1
8686
sload
87-
not(0xffffffffffffffff)
87+
shl(0x40, not(0x00))
8888
and
8989
/* "optimizer_inliner_dynamic_reference/input.sol":151:152 f */
9090
tag_17

Diff for: test/libsolidity/gasTests/abiv2_optimised.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ contract C {
1919
// optimize-yul: true
2020
// ----
2121
// creation:
22-
// codeDepositCost: 617600
23-
// executionCost: 649
24-
// totalCost: 618249
22+
// codeDepositCost: 605600
23+
// executionCost: 636
24+
// totalCost: 606236
2525
// external:
2626
// a(): 2283
2727
// b(uint256): 4649

Diff for: test/libsolidity/semanticTests/abiEncodeDecode/abi_decode_simple_storage.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ contract C {
88
}
99
// ----
1010
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"
11-
// gas irOptimized: 135499
11+
// gas irOptimized: 135563
1212
// gas legacy: 137095
13-
// gas legacyOptimized: 135823
13+
// gas legacyOptimized: 135879

Diff for: test/libsolidity/semanticTests/abiEncoderV1/abi_decode_v2_storage.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ contract C {
2121
}
2222
// ----
2323
// f() -> 0x20, 0x8, 0x40, 0x3, 0x9, 0xa, 0xb
24-
// gas irOptimized: 203167
24+
// gas irOptimized: 203255
2525
// gas legacy: 206263
26-
// gas legacyOptimized: 203172
26+
// gas legacyOptimized: 203220

Diff for: test/libsolidity/semanticTests/abiEncoderV1/abi_encode_calldata_slice.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ contract C {
5959
// EVMVersion: >homestead
6060
// ----
6161
// test_bytes() ->
62-
// gas irOptimized: 308660
62+
// gas irOptimized: 310684
6363
// gas legacy: 305816
64-
// gas legacyOptimized: 247337
64+
// gas legacyOptimized: 248777
6565
// test_uint256() ->
66-
// gas irOptimized: 438474
66+
// gas irOptimized: 440498
6767
// gas legacy: 421304
68-
// gas legacyOptimized: 341672
68+
// gas legacyOptimized: 343112

Diff for: test/libsolidity/semanticTests/abiEncoderV2/abi_encode_calldata_slice.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ contract C {
6060
// EVMVersion: >homestead
6161
// ----
6262
// test_bytes() ->
63-
// gas irOptimized: 308660
63+
// gas irOptimized: 310684
6464
// gas legacy: 305816
65-
// gas legacyOptimized: 247337
65+
// gas legacyOptimized: 248777
6666
// test_uint256() ->
67-
// gas irOptimized: 438474
67+
// gas irOptimized: 440498
6868
// gas legacy: 421304
69-
// gas legacyOptimized: 341672
69+
// gas legacyOptimized: 343112

Diff for: test/libsolidity/semanticTests/abiEncoderV2/abi_encode_v2_in_function_inherited_in_v1_contract.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ contract C is B {
3030
}
3131
// ----
3232
// test() -> 77
33-
// gas irOptimized: 55113
34-
// gas irOptimized code: 56800
33+
// gas irOptimized: 55177
34+
// gas irOptimized code: 54400
3535
// gas legacy: 57266
3636
// gas legacy code: 94600
3737
// gas legacyOptimized: 55191

Diff for: test/libsolidity/semanticTests/abiEncoderV2/calldata_array.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ contract C {
2020
// f(uint256[][1]): 32, 32, 0 -> true
2121
// f(uint256[][1]): 32, 32, 1, 42 -> true
2222
// f(uint256[][1]): 32, 32, 8, 421, 422, 423, 424, 425, 426, 427, 428 -> true
23-
// gas irOptimized: 118382
23+
// gas irOptimized: 118550
2424
// gas legacy: 101568
2525
// gas legacyOptimized: 119092

Diff for: test/libsolidity/semanticTests/abiEncoderV2/calldata_overlapped_dynamic_arrays.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ contract C {
3333
// f_which(uint256[],uint256[2],uint256): 0x40, 1, 2, 1, 5, 6 -> 0x20, 0x40, 5, 2
3434
// f_which(uint256[],uint256[2],uint256): 0x40, 1, 2, 1 -> FAILURE
3535
// f_storage(uint256[],uint256[2]): 0x20, 1, 2 -> 0x20, 0x60, 0x20, 1, 2
36-
// gas irOptimized: 111409
36+
// gas irOptimized: 111441
3737
// gas legacy: 112707
38-
// gas legacyOptimized: 111845
38+
// gas legacyOptimized: 111861
3939
// f_storage(uint256[],uint256[2]): 0x40, 1, 2, 5, 6 -> 0x20, 0x80, 0x20, 2, 5, 6
4040
// f_storage(uint256[],uint256[2]): 0x40, 1, 2, 5 -> FAILURE

Diff for: test/libsolidity/semanticTests/abiEncoderV2/storage_array_encoding.sol

+2-2
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: 180080
21+
// gas irOptimized: 180104
2222
// gas legacy: 184233
2323
// gas legacyOptimized: 180856
2424
// i(uint256[2][2]): 123, 124, 223, 224 -> 32, 128, 123, 124, 223, 224
25-
// gas irOptimized: 112031
25+
// gas irOptimized: 112039
2626
// gas legacy: 115091
2727
// gas legacyOptimized: 112657

Diff for: test/libsolidity/semanticTests/array/arrays_complex_from_and_to_storage.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ 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: 185216
15+
// gas irOptimized: 185288
1616
// gas legacy: 211054
17-
// gas legacyOptimized: 206077
17+
// gas legacyOptimized: 206149
1818
// data(uint256,uint256): 0x02, 0x02 -> 0x09
1919
// data(uint256,uint256): 0x05, 0x01 -> 0x11
2020
// data(uint256,uint256): 0x06, 0x00 -> FAILURE

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_cleanup_uint40.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ contract C {
4646
}
4747
// ----
4848
// f() -> true
49-
// gas irOptimized: 122541
49+
// gas irOptimized: 122810
5050
// gas legacy: 124643
51-
// gas legacyOptimized: 122801
51+
// gas legacyOptimized: 123108

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_different_packing.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ contract c {
1818
}
1919
// ----
2020
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x05000000000000000000000000000000000000000000000000
21-
// gas irOptimized: 208407
21+
// gas irOptimized: 208657
2222
// gas legacy: 220711
23-
// gas legacyOptimized: 220093
23+
// gas legacyOptimized: 220354

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_different_base.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ contract c {
1717
}
1818
// ----
1919
// test() -> 5, 4
20-
// gas irOptimized: 205667
20+
// gas irOptimized: 205763
2121
// gas legacy: 213863
22-
// gas legacyOptimized: 212901
22+
// gas legacyOptimized: 212981

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_different_base_nested.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ contract c {
2121
}
2222
// ----
2323
// test() -> 3, 4
24-
// gas irOptimized: 169665
24+
// gas irOptimized: 169619
2525
// gas legacy: 175415
26-
// gas legacyOptimized: 172529
26+
// gas legacyOptimized: 172479

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_storage_storage_dyn_dyn.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contract c {
1515
// ----
1616
// setData1(uint256,uint256,uint256): 10, 5, 4 ->
1717
// copyStorageStorage() ->
18-
// gas irOptimized: 111350
18+
// gas irOptimized: 111358
1919
// gas legacy: 109272
2020
// gas legacyOptimized: 109262
2121
// getData2(uint256): 5 -> 10, 4

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_target_simple.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ contract c {
1818
}
1919
// ----
2020
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x0
21-
// gas irOptimized: 273535
21+
// gas irOptimized: 273515
2222
// gas legacy: 282601
23-
// gas legacyOptimized: 281458
23+
// gas legacyOptimized: 281424

Diff for: test/libsolidity/semanticTests/array/copying/array_copy_target_simple_2.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ contract c {
1818
}
1919
// ----
2020
// test() -> 0x01000000000000000000000000000000000000000000000000, 0x02000000000000000000000000000000000000000000000000, 0x03000000000000000000000000000000000000000000000000, 0x04000000000000000000000000000000000000000000000000, 0x00
21-
// gas irOptimized: 232995
21+
// gas irOptimized: 233107
2222
// gas legacy: 235694
23-
// gas legacyOptimized: 235129
23+
// gas legacyOptimized: 235102

Diff for: test/libsolidity/semanticTests/array/copying/array_elements_to_mapping.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ contract C {
5252
}
5353
// ----
5454
// from_storage() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14
55-
// gas irOptimized: 149868
55+
// gas irOptimized: 149940
5656
// gas legacy: 150737
5757
// gas legacyOptimized: 148690
5858
// from_storage_ptr() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14

Diff for: test/libsolidity/semanticTests/array/copying/array_nested_calldata_to_storage.sol

+3-3
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: 181029
41+
// gas irOptimized: 181093
4242
// test2(uint256[][2]): 0x20, 0x40, 0x40, 2, 23, 42 -> 2, 65
43-
// gas irOptimized: 157604
43+
// gas irOptimized: 157660
4444
// test3(uint256[2][]): 0x20, 2, 23, 42, 23, 42 -> 2, 65
45-
// gas irOptimized: 134801
45+
// gas irOptimized: 134817
4646
// test4(uint256[2][2]): 23, 42, 23, 42 -> 65
4747
// gas irOptimized: 111177

Diff for: test/libsolidity/semanticTests/array/copying/array_of_function_external_storage_to_storage_dynamic.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ contract C {
4545
}
4646
// ----
4747
// copyExternalStorageArrayOfFunctionType() -> true
48-
// gas irOptimized: 104554
48+
// gas irOptimized: 104654
4949
// gas legacy: 108554
50-
// gas legacyOptimized: 102405
50+
// gas legacyOptimized: 102465
5151
// copyInternalArrayOfFunctionType() -> true

Diff for: test/libsolidity/semanticTests/array/copying/array_of_function_external_storage_to_storage_dynamic_different_mutability.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ contract C {
4848
}
4949
// ----
5050
// copyExternalStorageArraysOfFunctionType() -> true
51-
// gas irOptimized: 104226
51+
// gas irOptimized: 104326
5252
// gas legacy: 108295
53-
// gas legacyOptimized: 102162
53+
// gas legacyOptimized: 102222
5454
// copyInternalArrayOfFunctionType() -> true
5555
// gas legacy: 104178

Diff for: test/libsolidity/semanticTests/array/copying/array_of_struct_calldata_to_storage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ contract C {
1717
// compileViaYul: true
1818
// ----
1919
// f((uint128,uint64,uint128)[]): 0x20, 3, 0, 0, 12, 0, 11, 0, 10, 0, 0 -> 10, 11, 12
20-
// gas irOptimized: 120747
20+
// gas irOptimized: 120763

Diff for: test/libsolidity/semanticTests/array/copying/array_of_struct_memory_to_storage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ contract C {
1919
// compileViaYul: true
2020
// ----
2121
// f() -> 10, 11, 12
22-
// gas irOptimized: 118784
22+
// gas irOptimized: 118834

Diff for: test/libsolidity/semanticTests/array/copying/array_of_structs_containing_arrays_calldata_to_storage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ contract C {
2323
// compileViaYul: true
2424
// ----
2525
// f((uint256[])[]): 0x20, 3, 0x60, 0x60, 0x60, 0x20, 3, 1, 2, 3 -> 3, 1
26-
// gas irOptimized: 327456
26+
// gas irOptimized: 327616

Diff for: test/libsolidity/semanticTests/array/copying/array_of_structs_containing_arrays_memory_to_storage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ contract C {
2626
// compileViaYul: true
2727
// ----
2828
// f() -> 3, 3, 3, 1
29-
// gas irOptimized: 181904
29+
// gas irOptimized: 181928

Diff for: test/libsolidity/semanticTests/array/copying/array_storage_multi_items_per_slot.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ contract C {
1212
}
1313
// ----
1414
// f() -> 1, 2, 3
15-
// gas irOptimized: 131935
15+
// gas irOptimized: 131953
1616
// gas legacy: 134605
17-
// gas legacyOptimized: 131934
17+
// gas legacyOptimized: 131952

Diff for: test/libsolidity/semanticTests/array/copying/array_to_mapping.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ contract C {
3737
}
3838
// ----
3939
// from_storage() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14
40-
// gas irOptimized: 147755
40+
// gas irOptimized: 147803
4141
// gas legacy: 148892
4242
// gas legacyOptimized: 146917
4343
// from_storage_ptr() -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14

Diff for: test/libsolidity/semanticTests/array/copying/arrays_from_and_to_storage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract Test {
1212
// set(uint24[]): 0x20, 18, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 -> 18
1313
// gas irOptimized: 99616
1414
// gas legacy: 103509
15-
// gas legacyOptimized: 101266
15+
// gas legacyOptimized: 101290
1616
// data(uint256): 7 -> 8
1717
// data(uint256): 15 -> 16
1818
// data(uint256): 18 -> FAILURE

Diff for: test/libsolidity/semanticTests/array/copying/bytes_storage_to_storage.sol

+10-10
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ contract c {
1717
// ----
1818
// f(uint256): 0 -> 0x20, 0x00
1919
// f(uint256): 31 -> 0x20, 0x1f, 0x0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e00
20-
// gas irOptimized: 103144
20+
// gas irOptimized: 103192
2121
// gas legacy: 112904
22-
// gas legacyOptimized: 112027
22+
// gas legacyOptimized: 112051
2323
// f(uint256): 32 -> 0x20, 0x20, 1780731860627700044960722568376592200742329637303199754547598369979440671
24-
// gas irOptimized: 117697
24+
// gas irOptimized: 117745
2525
// gas legacy: 128964
26-
// gas legacyOptimized: 128214
26+
// gas legacyOptimized: 128238
2727
// f(uint256): 33 -> 0x20, 33, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x2000000000000000000000000000000000000000000000000000000000000000
28-
// gas irOptimized: 123959
28+
// gas irOptimized: 124007
2929
// gas legacy: 136092
30-
// gas legacyOptimized: 134809
30+
// gas legacyOptimized: 134833
3131
// f(uint256): 63 -> 0x20, 0x3f, 1780731860627700044960722568376592200742329637303199754547598369979440671, 14532552714582660066924456880521368950258152170031413196862950297402215316992
32-
// gas irOptimized: 126899
32+
// gas irOptimized: 126947
3333
// gas legacy: 148692
34-
// gas legacyOptimized: 147439
34+
// gas legacyOptimized: 147463
3535
// f(uint256): 12 -> 0x20, 0x0c, 0x0102030405060708090a0b0000000000000000000000000000000000000000
3636
// gas legacy: 59345
3737
// gas legacyOptimized: 57279
3838
// f(uint256): 129 -> 0x20, 0x81, 1780731860627700044960722568376592200742329637303199754547598369979440671, 0x202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f, 29063324697304692433803953038474361308315562010425523193971352996434451193439, 0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f, -57896044618658097711785492504343953926634992332820282019728792003956564819968
39-
// gas irOptimized: 416402
39+
// gas irOptimized: 416450
4040
// gas legacy: 458997
41-
// gas legacyOptimized: 458084
41+
// gas legacyOptimized: 458108

Diff for: test/libsolidity/semanticTests/array/copying/calldata_array_to_mapping.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ contract C {
1414
// compileViaYul: true
1515
// ----
1616
// from_calldata(uint8[][]): 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14 -> 0x20, 2, 0x40, 0xa0, 2, 10, 11, 3, 12, 13, 14
17-
// gas irOptimized: 139587
17+
// gas irOptimized: 139651

Diff for: test/libsolidity/semanticTests/array/copying/copy_byte_array_in_struct_to_storage.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ contract C {
3535
}
3636
// ----
3737
// f() -> 0x40, 0x80, 6, 0x6162636465660000000000000000000000000000000000000000000000000000, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000
38-
// gas irOptimized: 179405
38+
// gas irOptimized: 179461
3939
// gas legacy: 180675
4040
// gas legacyOptimized: 179686
4141
// g() -> 0x40, 0xc0, 0x49, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738393031323334353637383930313233343536373839303120, 0x3132333435363738390000000000000000000000000000000000000000000000, 0x11, 0x3132333435363738393233343536373839000000000000000000000000000000
42-
// gas irOptimized: 106338
42+
// gas irOptimized: 106394
4343
// gas legacy: 109415
4444
// gas legacyOptimized: 106600
4545
// h() -> 0x40, 0x60, 0x00, 0x00

Diff for: test/libsolidity/semanticTests/array/copying/copy_function_internal_storage_array.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ contract C {
1515
}
1616
// ----
1717
// test() -> 7
18-
// gas irOptimized: 122459
18+
// gas irOptimized: 122585
1919
// gas legacy: 205176
20-
// gas legacyOptimized: 204971
20+
// gas legacyOptimized: 205171

Diff for: test/libsolidity/semanticTests/array/copying/copy_internal_function_array_to_storage.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ contract C {
1919
// ----
2020
// one() -> 3
2121
// gas legacy: 140253
22-
// gas legacyOptimized: 140093
22+
// gas legacyOptimized: 140413
2323
// two() -> FAILURE, hex"4e487b71", 0x51

Diff for: test/libsolidity/semanticTests/array/copying/copying_bytes_multiassign.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ contract sender {
1818
}
1919
// ----
2020
// (): 7 ->
21-
// gas irOptimized: 110822
21+
// gas irOptimized: 110838
2222
// gas legacy: 111388
2323
// gas legacyOptimized: 111065
2424
// val() -> 0

0 commit comments

Comments
 (0)