Skip to content

UnusedStoreEliminator: Fix incorrect mstore removal when a variable is reassigned. - #16459

Draft
rodiazet wants to merge 6 commits into
developfrom
fix-mstore-removal
Draft

rodiazet wants to merge 6 commits into
developfrom
fix-mstore-removal

Conversation

@rodiazet

@rodiazet rodiazet commented Feb 10, 2026 •

Copy link
Copy Markdown
Contributor

SSAValueTracker implementation has changed to support also variables which are functions parameters. Previous implementation omitted function parameters because they do not have default value. SSAValueTracker supported only variables which are initialised, directly in the code or by default value. Functions return variables are set to 0
, but function parameters have values passed by the caller. Additional set is added to store function parameters which are not assigned in the function body. This change allowed to implement function which filters out variables which (with their dependencies) are not in SSA form. It's needed to properly define a set which serves as an input to the knowledge base.

Fixes: #16458

Depends on: #16959

@rodiazet
rodiazet requested a review from clonker February 10, 2026 13:24
@rodiazet
rodiazet force-pushed the fix-mstore-removal branch 2 times, most recently from c987b2b to 38fd9ac Compare February 11, 2026 10:56
@rodiazet
rodiazet force-pushed the fix-mstore-removal branch 3 times, most recently from 16b2cc9 to 30c820c Compare February 19, 2026 15:58
@stackenbotten3000

Copy link
Copy Markdown

There was an error when running chk_coding_style for commit 30c820caf8e6a2c43c096cecf423c67e044284c8:

Coding style error:
libyul/optimiser/SSAValueTracker.cpp:25:#include "liblangutil/Exceptions.h"

Please check that your changes are working as intended.

@rodiazet
rodiazet force-pushed the fix-mstore-removal branch 4 times, most recently from cba7f5b to 31b25f9 Compare February 19, 2026 17:15
@rodiazet
rodiazet marked this pull request as ready for review February 19, 2026 17:15
@rodiazet
rodiazet requested a review from Copilot February 19, 2026 17:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Yul optimizer’s UnusedStoreEliminator pipeline to avoid incorrect mstore removals when the input is not in pseudo-SSA form (notably when function parameters are involved), and adds targeted optimizer tests for the “no SSA transform” scenario described in #16458.

Changes:

  • Extend SSAValueTracker to treat unassigned function parameters as valid SSA roots when checking SSA-ness transitively through dependencies.
  • Filter the knowledge-base SSA input used by UnusedStoreEliminator to only include expressions that are in SSA form together with their dependencies.
  • Add a dedicated unusedStoreEliminatorNoSsaTransform test step and new Yul tests that exercise the problematic cases.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
libyul/optimiser/SSAValueTracker.h Adds an SSA-with-dependencies query API and tracks function parameters.
libyul/optimiser/SSAValueTracker.cpp Implements dependency-based SSA checking and parameter tracking during AST walk.
libyul/optimiser/UnusedStoreEliminator.cpp Builds the SSA value map using only SSA-safe expressions (with SSA-safe dependencies).
test/libyul/YulOptimizerTestCommon.cpp Adds a new optimizer test step that runs UnusedStoreEliminator without SSATransform.
test/libyul/yulOptimizerTests/unusedStoreEliminatorNoSsaTransform/mstore_location_reassigned.yul New regression test covering non-SSA reassignment affecting mstore location.
test/libyul/yulOptimizerTests/unusedStoreEliminatorNoSsaTransform/function_parameter_as_mstore_location_unrelated.yul New test where parameter-derived store location should be removable (non-overlapping).
test/libyul/yulOptimizerTests/unusedStoreEliminatorNoSsaTransform/function_parameter_as_mstore_location_covering.yul New test where parameter-derived store location must be kept (overlapping return).
test/libyul/yulOptimizerTests/unusedStoreEliminatorNoSsaTransform/function_parameter_reassinged_as_mstore_location_unrelated.yul New test intended to cover reassigned-parameter non-overlap scenario.
test/libyul/yulOptimizerTests/unusedStoreEliminatorNoSsaTransform/function_parameter_reassinged_as_mstore_location_covering.yul New test covering reassigned-parameter overlapping scenario.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread libyul/optimiser/SSAValueTracker.h Resolved
Comment thread libyul/optimiser/SSAValueTracker.cpp Resolved
@rodiazet
rodiazet force-pushed the fix-mstore-removal branch 2 times, most recently from 9cf23ac to 7d014ec Compare February 19, 2026 18:26

@nikola-matic nikola-matic left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed you squashed the test updates into the first commit (after pushing the fix), because I can't see any updates in the test expectations in the second commit?

As per usual, you're missing a changelog entry :)

Comment thread libyul/optimiser/SSAValueTracker.cpp Resolved
Comment thread libyul/optimiser/SSAValueTracker.cpp Resolved
Comment thread libyul/optimiser/SSAValueTracker.cpp Outdated
Comment on lines +87 to +91
else
{
solAssert(std::holds_alternative<Literal>(*_expression), "Impossible expression type");
return true;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
else
{
solAssert(std::holds_alternative<Literal>(*_expression), "Impossible expression type");
return true;
}
solAssert(std::holds_alternative<Literal>(*_expression), "Impossible expression type");
return true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think the suggestion works

Comment thread libyul/optimiser/SSAValueTracker.cpp Resolved
// let a := add(arg, 1)
// let b := arg
// let outLen := 32
// mstore(a, 0xAA)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked before the fix as well, since you're not reassigning arg?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I added function parameters set to the SSAValueTracker, because I need to know them if they are not reassigned and if not they properly close the closed set. This is just a simple test of this.

@rodiazet
rodiazet force-pushed the fix-mstore-removal branch 2 times, most recently from 3ef065c to df081a5 Compare February 20, 2026 12:44
Comment thread Changelog.md Resolved
Comment thread Changelog.md

@cameel cameel Feb 20, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remember that this will need a buglist entry.

Without it the PR is not really finished so it should still be a draft.

@rodiazet rodiazet Feb 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug list updated. How about the blogpost link? I changed it to draft for now.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can leave it unfilled until we know when we're releasing this. URLs are predictable, based on date and title (which should match the bug ID) so we could create one already, but if we do it now, we can easily forget to update the date and we'll end up with a broken link. So for now I'd put in something that clearly looks like a placeholder.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used X/Y/Z placeholder for now as it was done in prev cases.

@rodiazet
rodiazet marked this pull request as draft February 23, 2026 11:51
Comment thread test.sol Resolved
Base automatically changed from unordered-map-ssa-value-tracker to develop August 24, 2026 15:14
@rodiazet
rodiazet force-pushed the fix-mstore-removal branch from d4d524f to 98e3dcf Compare August 24, 2026 15:14
@argotorg argotorg deleted a comment from github-actions Bot Aug 25, 2026
@argotorg argotorg deleted a comment from github-actions Bot Aug 25, 2026
@rodiazet

Copy link
Copy Markdown
Contributor Author

I removed local benchmarks result and added benchmarks from the benchmark machine.

@rodiazet

rodiazet commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Summary:

Per-benchmark distribution of the regression

Δ% (target vs baseline) across the 48 benchmarks in each pipeline:

metric pipeline mean median min (best) max (worst)
cpu_time evmasm +0.11% +0.12% -0.63% +1.50%
cpu_time ir +0.33% +0.35% -0.06% +0.64%
wall_time evmasm +0.16% +0.11% -0.65% +1.68%
wall_time ir +0.36% +0.36% -0.15% +1.25%
cycles evmasm -0.12% -0.09% -0.99% +0.55%
cycles ir +0.21% +0.23% -0.24% +0.49%
instructions evmasm +0.05% +0.05% -0.63% +0.76%
instructions ir +0.12% +0.12% -0.08% +0.28%

Worst regressions

IR pipeline, cpu_time

benchmark Δ%
frax-stablecoin +0.64%
poap +0.60%
usdc-fiattoken-v2-2 +0.59%
makerdao-dss-vat +0.58%
subsets/seaport-referenceconsideration-1.6 +0.54%
balancer-v2-vault +0.51%
lido-withdrawal-queue +0.51%
uniswap-v3-pool +0.50%

evmasm pipeline, cpu_time

benchmark Δ%
poap +1.50%
balancer-v3-vault +0.63%
makerdao-dai +0.55%
usdc-fiattoken-v2-2 +0.53%
ens-name-wrapper +0.44%

Details

Benchmark results
Baseline: 0.8.37-ci.2026.8.24+commit.55d435cb.Linux.g++ n=10
Target:   0.8.37-ci.2026.8.24+commit.98e3dcf0.Linux.g++ n=10
Values are mean ± sample stddev. Δ% = (target mean - baseline mean) / baseline mean. Negative = improvement (lower is better), positive = regression.
winner = '~noise' unless the gap passes a Welch t-test and |Δ%| ≥ 0.1%.

Benchmark                                   Pipeline  Metric         Base                   Target                 Δ%      winner  
------------------------------------------  --------  -------------  ---------------------  ---------------------  ------  --------
solidity-verifier                           evmasm    cpu_time       0.1064s ± 0.0002s      0.1066s ± 0.0002s      +0.17%  ~noise  
                                                      creation_size  4,790 ± 0              4,790 ± 0              0.0%    tie     
                                                      cycles         297.6035M ± 522.9778k  296.6707M ± 535.1047k  -0.31%  TARGET  
                                                      instructions   635.4425M ± 6          635.7419M ± 9          +0.05%  ~noise  
                                                      peak_rss       104 ± 0 MiB            104 ± 0 MiB            -0.13%  TARGET  
                                                      runtime_size   4,712 ± 0              4,712 ± 0              0.0%    tie     
                                                      wall_time      0.1073s ± 0.0005s      0.1074s ± 0.0002s      +0.08%  ~noise  
                                                                                                                                   
solidity-verifier                           ir        cpu_time       0.2207s ± 0.0003s      0.2214s ± 0.0003s      +0.3%   BASELINE
                                                      creation_size  4,215 ± 0              4,215 ± 0              0.0%    tie     
                                                      cycles         706.8940M ± 979.3328k  706.8585M ± 1.1884M    -0.01%  ~noise  
                                                      instructions   1.3539G ± 23           1.3536G ± 13           -0.02%  ~noise  
                                                      peak_rss       104 ± 0 MiB            104 ± 0 MiB            -0.13%  TARGET  
                                                      runtime_size   4,161 ± 0              4,161 ± 0              0.0%    tie     
                                                      wall_time      0.2220s ± 0.0003s      0.2228s ± 0.0004s      +0.34%  BASELINE
                                                                                                                                   
solidity-optimizor-club                     ir        cpu_time       1.0768s ± 0.0022s      1.0793s ± 0.0023s      +0.23%  BASELINE
                                                      creation_size  21,778 ± 0             21,778 ± 0             0.0%    tie     
                                                      cycles         3.7251G ± 7.2230M      3.7325G ± 7.6977M      +0.2%   BASELINE
                                                      instructions   6.9966G ± 41           7.0040G ± 42           +0.11%  BASELINE
                                                      peak_rss       106 ± 1 MiB            106 ± 1 MiB            -0.03%  ~noise  
                                                      runtime_size   20,616 ± 0             20,616 ± 0             0.0%    tie     
                                                      wall_time      1.0826s ± 0.0022s      1.0849s ± 0.0027s      +0.21%  ~noise  
                                                                                                                                   
solidity-chains                             evmasm    cpu_time       0.1108s ± 0.0003s      0.1111s ± 0.0002s      +0.25%  BASELINE
                                                      creation_size  5,831 ± 0              5,831 ± 0              0.0%    tie     
                                                      cycles         316.9489M ± 736.8069k  316.7354M ± 527.4969k  -0.07%  ~noise  
                                                      instructions   647.9912M ± 5          648.1310M ± 8          +0.02%  ~noise  
                                                      peak_rss       106 ± 0 MiB            106 ± 0 MiB            -0.09%  ~noise  
                                                      runtime_size   5,803 ± 0              5,803 ± 0              0.0%    tie     
                                                      wall_time      0.1116s ± 0.0003s      0.1119s ± 0.0002s      +0.27%  BASELINE
                                                                                                                                   
safe-smart-account-1.5.0                    evmasm    cpu_time       1.6710s ± 0.0026s      1.6743s ± 0.0025s      +0.2%   BASELINE
                                                      creation_size  64,387 ± 0             64,387 ± 0             0.0%    tie     
                                                      cycles         5.7198G ± 8.1374M      5.7193G ± 7.6805M      -0.01%  ~noise  
                                                      instructions   11.4814G ± 59          11.4934G ± 36          +0.1%   BASELINE
                                                      peak_rss       133 ± 9 MiB            132 ± 9 MiB            -0.16%  ~noise  
                                                      runtime_size   61,711 ± 0             61,711 ± 0             0.0%    tie     
                                                      wall_time      1.6847s ± 0.0025s      1.6853s ± 0.0029s      +0.04%  ~noise  
                                                                                                                                   
safe-smart-account-1.5.0                    ir        cpu_time       3.8625s ± 0.0068s      3.8759s ± 0.0028s      +0.35%  BASELINE
                                                      creation_size  55,618 ± 0             55,631 ± 0             +0.02%  ~noise  
                                                      cycles         13.6355G ± 23.6895M    13.6758G ± 8.0182M     +0.3%   BASELINE
                                                      instructions   23.1149G ± 121         23.1511G ± 74          +0.16%  BASELINE
                                                      peak_rss       136 ± 0 MiB            135 ± 0 MiB            -0.15%  TARGET  
                                                      runtime_size   52,790 ± 0             52,803 ± 0             +0.02%  ~noise  
                                                      wall_time      3.8823s ± 0.0068s      3.8960s ± 0.0039s      +0.35%  BASELINE
                                                                                                                                   
account-abstraction-0.8.0                   evmasm    cpu_time       1.9258s ± 0.0037s      1.9283s ± 0.0021s      +0.13%  ~noise  
                                                      creation_size  94,144 ± 0             94,144 ± 0             0.0%    tie     
                                                      cycles         6.5886G ± 13.2866M     6.5864G ± 5.3876M      -0.03%  ~noise  
                                                      instructions   13.3365G ± 87          13.3481G ± 48          +0.09%  ~noise  
                                                      peak_rss       151 ± 6 MiB            151 ± 7 MiB            -0.08%  ~noise  
                                                      runtime_size   65,469 ± 0             65,469 ± 0             0.0%    tie     
                                                      wall_time      1.9415s ± 0.0037s      1.9430s ± 0.0025s      +0.08%  ~noise  
                                                                                                                                   
account-abstraction-0.8.0                   ir        cpu_time       4.3257s ± 0.0048s      4.3398s ± 0.0027s      +0.33%  BASELINE
                                                      creation_size  75,427 ± 0             75,427 ± 0             0.0%    tie     
                                                      cycles         15.2520G ± 18.0719M    15.2955G ± 8.8218M     +0.29%  BASELINE
                                                      instructions   26.6037G ± 141         26.6429G ± 95          +0.15%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   51,592 ± 0             51,592 ± 0             0.0%    tie     
                                                      wall_time      4.3485s ± 0.0050s      4.3627s ± 0.0028s      +0.33%  BASELINE
                                                                                                                                   
weth9                                       evmasm    cpu_time       0.0721s ± 0.0001s      0.0723s ± 0.0003s      +0.25%  ~noise  
                                                      creation_size  2,439 ± 0              2,439 ± 0              0.0%    tie     
                                                      cycles         186.6399M ± 270.7987k  186.7843M ± 467.8846k  +0.08%  ~noise  
                                                      instructions   370.6738M ± 5          370.7796M ± 6          +0.03%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   1,835 ± 0              1,835 ± 0              0.0%    tie     
                                                      wall_time      0.0727s ± 0.0001s      0.0729s ± 0.0003s      +0.29%  ~noise  
                                                                                                                                   
weth9                                       ir        cpu_time       0.1466s ± 0.0001s      0.1473s ± 0.0001s      +0.46%  BASELINE
                                                      creation_size  2,130 ± 0              2,130 ± 0              0.0%    tie     
                                                      cycles         448.0950M ± 214.9116k  449.4493M ± 381.0159k  +0.3%   BASELINE
                                                      instructions   803.1348M ± 18         804.9197M ± 18         +0.22%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   1,725 ± 0              1,725 ± 0              0.0%    tie     
                                                      wall_time      0.1475s ± 0.0002s      0.1484s ± 0.0007s      +0.58%  BASELINE
                                                                                                                                   
oeth                                        evmasm    cpu_time       0.3753s ± 0.0006s      0.3756s ± 0.0002s      +0.09%  ~noise  
                                                      creation_size  21,972 ± 0             21,972 ± 0             0.0%    tie     
                                                      cycles         1.2256G ± 1.3672M      1.2250G ± 818.2200k    -0.05%  ~noise  
                                                      instructions   2.5662G ± 15           2.5696G ± 16           +0.13%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   21,627 ± 0             21,627 ± 0             0.0%    tie     
                                                      wall_time      0.3776s ± 0.0006s      0.3780s ± 0.0003s      +0.1%   ~noise  
                                                                                                                                   
oeth                                        ir        cpu_time       1.2913s ± 0.0028s      1.2975s ± 0.0019s      +0.48%  BASELINE
                                                      creation_size  19,743 ± 0             19,743 ± 0             0.0%    tie     
                                                      cycles         4.4869G ± 9.2852M      4.5033G ± 7.0881M      +0.36%  BASELINE
                                                      instructions   7.6396G ± 65           7.6502G ± 55           +0.14%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   19,445 ± 0             19,445 ± 0             0.0%    tie     
                                                      wall_time      1.2982s ± 0.0031s      1.3042s ± 0.0022s      +0.46%  BASELINE
                                                                                                                                   
aave-v4-hub                                 evmasm    cpu_time       0.7151s ± 0.0017s      0.7157s ± 0.0008s      +0.08%  ~noise  
                                                      creation_size  24,199 ± 0             24,199 ± 0             0.0%    tie     
                                                      cycles         2.3306G ± 4.3962M      2.3261G ± 2.0778M      -0.19%  TARGET  
                                                      instructions   4.9626G ± 52           4.9631G ± 18           +0.01%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,185 ± 0             23,185 ± 0             0.0%    tie     
                                                      wall_time      0.7196s ± 0.0017s      0.7207s ± 0.0010s      +0.15%  ~noise  
                                                                                                                                   
aave-v4-hub                                 ir        cpu_time       1.9848s ± 0.0026s      1.9904s ± 0.0019s      +0.29%  BASELINE
                                                      creation_size  19,407 ± 0             19,407 ± 0             0.0%    tie     
                                                      cycles         6.8737G ± 9.2416M      6.8846G ± 5.5660M      +0.16%  BASELINE
                                                      instructions   11.1003G ± 39          11.1101G ± 42          +0.09%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   18,752 ± 0             18,752 ± 0             0.0%    tie     
                                                      wall_time      1.9953s ± 0.0027s      2.0012s ± 0.0025s      +0.3%   BASELINE
                                                                                                                                   
uniswap-v3-pool                             evmasm    cpu_time       0.6161s ± 0.0015s      0.6154s ± 0.0009s      -0.12%  ~noise  
                                                      creation_size  26,386 ± 0             26,386 ± 0             0.0%    tie     
                                                      cycles         2.0529G ± 4.7235M      2.0461G ± 1.9030M      -0.34%  TARGET  
                                                      instructions   4.3462G ± 11           4.3493G ± 29           +0.07%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   24,611 ± 0             24,611 ± 0             0.0%    tie     
                                                      wall_time      0.6200s ± 0.0011s      0.6192s ± 0.0012s      -0.13%  ~noise  
                                                                                                                                   
uniswap-v3-pool                             ir        cpu_time       3.5691s ± 0.0055s      3.5870s ± 0.0032s      +0.5%   BASELINE
                                                      creation_size  25,139 ± 0             25,141 ± 0             +0.01%  ~noise  
                                                      cycles         12.4685G ± 21.2226M    12.5211G ± 9.3789M     +0.42%  BASELINE
                                                      instructions   18.2181G ± 53          18.2226G ± 65          +0.02%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,935 ± 0             23,937 ± 0             +0.01%  ~noise  
                                                      wall_time      3.5869s ± 0.0050s      3.6045s ± 0.0040s      +0.49%  BASELINE
                                                                                                                                   
chainlink-link-token                        evmasm    cpu_time       0.0781s ± 0.0002s      0.0776s ± 0.0002s      -0.63%  TARGET  
                                                      creation_size  2,694 ± 0              2,694 ± 0              0.0%    tie     
                                                      cycles         202.2363M ± 399.7143k  200.4815M ± 297.2495k  -0.87%  TARGET  
                                                      instructions   410.3050M ± 8          407.7007M ± 8          -0.63%  TARGET  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   2,584 ± 0              2,584 ± 0              0.0%    tie     
                                                      wall_time      0.0788s ± 0.0002s      0.0783s ± 0.0001s      -0.65%  TARGET  
                                                                                                                                   
chainlink-link-token                        ir        cpu_time       0.1802s ± 0.0002s      0.1803s ± 0.0002s      +0.07%  ~noise  
                                                      creation_size  2,262 ± 0              2,262 ± 0              0.0%    tie     
                                                      cycles         561.1137M ± 332.2677k  561.3831M ± 376.6352k  +0.05%  ~noise  
                                                      instructions   1.0107G ± 15           1.0129G ± 20           +0.22%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   2,167 ± 0              2,167 ± 0              0.0%    tie     
                                                      wall_time      0.1813s ± 0.0003s      0.1835s ± 0.0064s      +1.23%  ~noise  
                                                                                                                                   
chainlink-ocr2-aggregator                   evmasm    cpu_time       1.0314s ± 0.0010s      1.0347s ± 0.0015s      +0.32%  BASELINE
                                                      creation_size  50,447 ± 0             50,447 ± 0             0.0%    tie     
                                                      cycles         3.5622G ± 3.5856M      3.5703G ± 4.8298M      +0.23%  BASELINE
                                                      instructions   6.8981G ± 72           6.9070G ± 37           +0.13%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   44,800 ± 0             44,800 ± 0             0.0%    tie     
                                                      wall_time      1.0404s ± 0.0077s      1.0440s ± 0.0076s      +0.34%  ~noise  
                                                                                                                                   
chainlink-ocr2-aggregator                   ir        cpu_time       3.7082s ± 0.0071s      3.7206s ± 0.0019s      +0.33%  BASELINE
                                                      creation_size  47,416 ± 0             47,410 ± 0             -0.01%  ~noise  
                                                      cycles         13.1238G ± 23.3419M    13.1631G ± 4.2755M     +0.3%   BASELINE
                                                      instructions   22.5046G ± 158         22.5430G ± 61          +0.17%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   43,413 ± 0             43,407 ± 0             -0.01%  ~noise  
                                                      wall_time      3.7283s ± 0.0125s      3.7385s ± 0.0016s      +0.27%  BASELINE
                                                                                                                                   
balancer-v2-vault                           evmasm    cpu_time       0.8904s ± 0.0021s      0.8899s ± 0.0017s      -0.05%  ~noise  
                                                      creation_size  31,998 ± 0             31,998 ± 0             0.0%    tie     
                                                      cycles         2.9953G ± 7.1851M      2.9844G ± 4.6631M      -0.36%  TARGET  
                                                      instructions   6.1400G ± 74           6.1412G ± 22           +0.02%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   27,768 ± 0             27,768 ± 0             0.0%    tie     
                                                      wall_time      0.8959s ± 0.0023s      0.8956s ± 0.0017s      -0.04%  ~noise  
                                                                                                                                   
balancer-v2-vault                           ir        cpu_time       2.2205s ± 0.0045s      2.2317s ± 0.0025s      +0.51%  BASELINE
                                                      creation_size  28,933 ± 0             28,937 ± 0             +0.01%  ~noise  
                                                      cycles         7.7415G ± 14.9478M     7.7708G ± 8.8058M      +0.38%  BASELINE
                                                      instructions   13.1097G ± 108         13.1421G ± 36          +0.25%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   25,139 ± 0             25,143 ± 0             +0.02%  ~noise  
                                                      wall_time      2.2324s ± 0.0044s      2.2433s ± 0.0024s      +0.49%  BASELINE
                                                                                                                                   
balancer-v3-router                          evmasm    cpu_time       0.8654s ± 0.0021s      0.8661s ± 0.0015s      +0.09%  ~noise  
                                                      creation_size  29,212 ± 0             29,212 ± 0             0.0%    tie     
                                                      cycles         2.9034G ± 7.0017M      2.8991G ± 4.1021M      -0.15%  ~noise  
                                                      instructions   5.9551G ± 62           5.9566G ± 42           +0.03%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   26,260 ± 0             26,260 ± 0             0.0%    tie     
                                                      wall_time      0.8704s ± 0.0021s      0.8713s ± 0.0013s      +0.1%   ~noise  
                                                                                                                                   
balancer-v3-router                          ir        cpu_time       2.2216s ± 0.0025s      2.2312s ± 0.0013s      +0.43%  BASELINE
                                                      creation_size  21,945 ± 0             21,945 ± 0             0.0%    tie     
                                                      cycles         7.7275G ± 8.7836M      7.7520G ± 4.4235M      +0.32%  BASELINE
                                                      instructions   11.9307G ± 69          11.9357G ± 29          +0.04%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   19,589 ± 0             19,589 ± 0             0.0%    tie     
                                                      wall_time      2.2335s ± 0.0033s      2.2427s ± 0.0018s      +0.41%  BASELINE
                                                                                                                                   
balancer-v3-vault                           evmasm    cpu_time       1.2980s ± 0.0025s      1.3062s ± 0.0026s      +0.63%  BASELINE
                                                      creation_size  43,874 ± 0             43,874 ± 0             0.0%    tie     
                                                      cycles         4.3603G ± 9.0109M      4.3766G ± 9.0817M      +0.37%  BASELINE
                                                      instructions   9.1571G ± 45           9.1511G ± 56           -0.06%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   38,554 ± 0             38,554 ± 0             0.0%    tie     
                                                      wall_time      1.3065s ± 0.0025s      1.3145s ± 0.0021s      +0.61%  BASELINE
                                                                                                                                   
balancer-v3-vault                           ir        cpu_time       3.0017s ± 0.0035s      3.0114s ± 0.0024s      +0.33%  BASELINE
                                                      creation_size  35,486 ± 0             35,494 ± 0             +0.02%  ~noise  
                                                      cycles         10.4229G ± 12.9413M    10.4498G ± 7.1482M     +0.26%  BASELINE
                                                      instructions   17.6033G ± 97          17.6177G ± 79          +0.08%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   30,394 ± 0             30,402 ± 0             +0.03%  ~noise  
                                                      wall_time      3.0184s ± 0.0044s      3.0278s ± 0.0030s      +0.31%  BASELINE
                                                                                                                                   
boredapeyachtclub                           evmasm    cpu_time       0.4413s ± 0.0007s      0.4431s ± 0.0007s      +0.42%  BASELINE
                                                      creation_size  18,183 ± 0             18,183 ± 0             0.0%    tie     
                                                      cycles         1.4664G ± 2.2314M      1.4687G ± 1.5843M      +0.16%  BASELINE
                                                      instructions   2.9810G ± 21           2.9847G ± 34           +0.12%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   16,003 ± 0             16,003 ± 0             0.0%    tie     
                                                      wall_time      0.4439s ± 0.0007s      0.4458s ± 0.0007s      +0.43%  BASELINE
                                                                                                                                   
boredapeyachtclub                           ir        cpu_time       1.1492s ± 0.0017s      1.1505s ± 0.0012s      +0.12%  ~noise  
                                                      creation_size  18,438 ± 0             18,438 ± 0             0.0%    tie     
                                                      cycles         3.9940G ± 5.6252M      3.9969G ± 3.8840M      +0.07%  ~noise  
                                                      instructions   7.0287G ± 57           7.0249G ± 38           -0.05%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   15,830 ± 0             15,830 ± 0             0.0%    tie     
                                                      wall_time      1.1556s ± 0.0021s      1.1565s ± 0.0019s      +0.08%  ~noise  
                                                                                                                                   
cow-protocol-settlement                     evmasm    cpu_time       0.5182s ± 0.0009s      0.5190s ± 0.0011s      +0.16%  ~noise  
                                                      creation_size  24,105 ± 0             24,105 ± 0             0.0%    tie     
                                                      cycles         1.7431G ± 2.6034M      1.7443G ± 3.5839M      +0.07%  ~noise  
                                                      instructions   3.4405G ± 25           3.4444G ± 29           +0.11%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   18,779 ± 0             18,779 ± 0             0.0%    tie     
                                                      wall_time      0.5212s ± 0.0008s      0.5222s ± 0.0018s      +0.21%  ~noise  
                                                                                                                                   
cow-protocol-settlement                     ir        cpu_time       1.0719s ± 0.0022s      1.0738s ± 0.0012s      +0.18%  BASELINE
                                                      creation_size  20,527 ± 0             20,536 ± 0             +0.04%  ~noise  
                                                      cycles         3.7136G ± 7.2661M      3.7171G ± 4.2320M      +0.09%  ~noise  
                                                      instructions   6.6737G ± 84           6.6847G ± 45           +0.17%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   15,948 ± 0             15,957 ± 0             +0.06%  ~noise  
                                                      wall_time      1.0777s ± 0.0021s      1.0795s ± 0.0012s      +0.16%  BASELINE
                                                                                                                                   
compound-comet-rewards                      evmasm    cpu_time       0.1301s ± 0.0003s      0.1301s ± 0.0002s      -0.01%  ~noise  
                                                      creation_size  4,578 ± 0              4,578 ± 0              0.0%    tie     
                                                      cycles         379.0980M ± 689.7773k  377.5333M ± 408.7049k  -0.41%  TARGET  
                                                      instructions   802.5334M ± 6          802.5482M ± 6          0.0%    tie     
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   4,364 ± 0              4,364 ± 0              0.0%    tie     
                                                      wall_time      0.1311s ± 0.0003s      0.1311s ± 0.0002s      -0.02%  ~noise  
                                                                                                                                   
compound-comet-rewards                      ir        cpu_time       0.3066s ± 0.0005s      0.3075s ± 0.0003s      +0.3%   BASELINE
                                                      creation_size  3,801 ± 0              3,801 ± 0              0.0%    tie     
                                                      cycles         1.0051G ± 1.5541M      1.0060G ± 949.7062k    +0.09%  ~noise  
                                                      instructions   1.8672G ± 24           1.8692G ± 14           +0.11%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   3,591 ± 0              3,591 ± 0              0.0%    tie     
                                                      wall_time      0.3087s ± 0.0008s      0.3094s ± 0.0003s      +0.24%  BASELINE
                                                                                                                                   
compound-comet-extended-asset-list          evmasm    cpu_time       0.4390s ± 0.0007s      0.4378s ± 0.0006s      -0.27%  TARGET  
                                                      creation_size  24,423 ± 0             24,423 ± 0             0.0%    tie     
                                                      cycles         1.4426G ± 1.2036M      1.4377G ± 839.6016k    -0.34%  TARGET  
                                                      instructions   3.0630G ± 19           3.0600G ± 30           -0.1%   TARGET  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   21,309 ± 0             21,309 ± 0             0.0%    tie     
                                                      wall_time      0.4417s ± 0.0006s      0.4409s ± 0.0014s      -0.2%   ~noise  
                                                                                                                                   
compound-comet-extended-asset-list          ir        cpu_time       1.2303s ± 0.0014s      1.2296s ± 0.0014s      -0.06%  ~noise  
                                                      creation_size  21,996 ± 0             21,960 ± 0             -0.16%  TARGET  
                                                      cycles         4.2668G ± 4.2126M      4.2659G ± 5.1533M      -0.02%  ~noise  
                                                      instructions   7.8319G ± 89           7.8405G ± 62           +0.11%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   19,244 ± 0             19,208 ± 0             -0.19%  TARGET  
                                                      wall_time      1.2367s ± 0.0014s      1.2361s ± 0.0023s      -0.05%  ~noise  
                                                                                                                                   
ens-eth-registrar-controller                evmasm    cpu_time       0.6677s ± 0.0009s      0.6691s ± 0.0004s      +0.22%  BASELINE
                                                      creation_size  26,840 ± 0             26,844 ± 0             +0.01%  ~noise  
                                                      cycles         2.2621G ± 2.5430M      2.2620G ± 1.4670M      -0.01%  ~noise  
                                                      instructions   4.5567G ± 45           4.5611G ± 13           +0.1%   BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,247 ± 0             23,251 ± 0             +0.02%  ~noise  
                                                      wall_time      0.6716s ± 0.0009s      0.6730s ± 0.0006s      +0.22%  BASELINE
                                                                                                                                   
ens-eth-registrar-controller                ir        cpu_time       1.6839s ± 0.0032s      1.6866s ± 0.0008s      +0.16%  BASELINE
                                                      creation_size  23,830 ± 0             23,838 ± 0             +0.03%  ~noise  
                                                      cycles         5.8757G ± 9.5221M      5.8822G ± 2.3656M      +0.11%  ~noise  
                                                      instructions   10.0129G ± 51          10.0283G ± 47          +0.15%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   20,028 ± 0             20,036 ± 0             +0.04%  ~noise  
                                                      wall_time      1.6927s ± 0.0032s      1.6952s ± 0.0009s      +0.15%  BASELINE
                                                                                                                                   
ens-name-wrapper                            evmasm    cpu_time       0.6013s ± 0.0011s      0.6040s ± 0.0012s      +0.44%  BASELINE
                                                      creation_size  25,599 ± 0             25,599 ± 0             0.0%    tie     
                                                      cycles         2.0102G ± 3.0230M      2.0134G ± 3.0311M      +0.16%  BASELINE
                                                      instructions   4.0681G ± 23           4.0601G ± 23           -0.2%   TARGET  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,337 ± 0             23,337 ± 0             0.0%    tie     
                                                      wall_time      0.6048s ± 0.0011s      0.6075s ± 0.0012s      +0.45%  BASELINE
                                                                                                                                   
ens-name-wrapper                            ir        cpu_time       1.4917s ± 0.0024s      1.4967s ± 0.0016s      +0.34%  BASELINE
                                                      creation_size  23,323 ± 0             23,323 ± 0             0.0%    tie     
                                                      cycles         5.1839G ± 8.6740M      5.1961G ± 5.6585M      +0.23%  BASELINE
                                                      instructions   8.9221G ± 75           8.9398G ± 46           +0.2%   BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   21,525 ± 0             21,525 ± 0             0.0%    tie     
                                                      wall_time      1.4995s ± 0.0026s      1.5042s ± 0.0016s      +0.32%  BASELINE
                                                                                                                                   
ens-registry-with-fallback                  evmasm    cpu_time       0.1087s ± 0.0002s      0.1084s ± 0.0002s      -0.27%  TARGET  
                                                      creation_size  5,532 ± 0              5,532 ± 0              0.0%    tie     
                                                      cycles         311.3442M ± 418.5974k  310.1160M ± 515.6419k  -0.39%  TARGET  
                                                      instructions   640.0415M ± 7          638.2403M ± 6          -0.28%  TARGET  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   5,261 ± 0              5,261 ± 0              0.0%    tie     
                                                      wall_time      0.1096s ± 0.0002s      0.1108s ± 0.0037s      +1.13%  ~noise  
                                                                                                                                   
ens-registry-with-fallback                  ir        cpu_time       0.3272s ± 0.0006s      0.3287s ± 0.0004s      +0.44%  BASELINE
                                                      creation_size  5,163 ± 0              5,163 ± 0              0.0%    tie     
                                                      cycles         1.0854G ± 1.6064M      1.0884G ± 1.5790M      +0.28%  BASELINE
                                                      instructions   1.9565G ± 43           1.9620G ± 15           +0.28%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   4,892 ± 0              4,892 ± 0              0.0%    tie     
                                                      wall_time      0.3291s ± 0.0006s      0.3306s ± 0.0004s      +0.46%  BASELINE
                                                                                                                                   
eigenlayer-eigenpod-manager                 evmasm    cpu_time       0.3820s ± 0.0007s      0.3797s ± 0.0005s      -0.6%   TARGET  
                                                      creation_size  12,181 ± 0             12,181 ± 0             0.0%    tie     
                                                      cycles         1.2199G ± 1.7089M      1.2078G ± 1.0601M      -0.99%  TARGET  
                                                      instructions   2.6711G ± 12           2.6708G ± 15           -0.01%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   11,120 ± 0             11,120 ± 0             0.0%    tie     
                                                      wall_time      0.3864s ± 0.0050s      0.3842s ± 0.0062s      -0.57%  ~noise  
                                                                                                                                   
eigenlayer-eigenpod-manager                 ir        cpu_time       0.8960s ± 0.0018s      0.8965s ± 0.0014s      +0.06%  ~noise  
                                                      creation_size  10,824 ± 0             10,824 ± 0             0.0%    tie     
                                                      cycles         3.0498G ± 6.4734M      3.0460G ± 4.8657M      -0.13%  ~noise  
                                                      instructions   5.7291G ± 29           5.7246G ± 29           -0.08%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   10,053 ± 0             10,053 ± 0             0.0%    tie     
                                                      wall_time      0.9010s ± 0.0017s      0.9018s ± 0.0014s      +0.09%  ~noise  
                                                                                                                                   
eigenlayer-strategy-manager                 evmasm    cpu_time       0.6582s ± 0.0012s      0.6556s ± 0.0011s      -0.41%  TARGET  
                                                      creation_size  17,090 ± 0             17,090 ± 0             0.0%    tie     
                                                      cycles         2.1589G ± 3.8221M      2.1412G ± 3.0430M      -0.82%  TARGET  
                                                      instructions   4.5679G ± 18           4.5670G ± 25           -0.02%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   15,250 ± 0             15,250 ± 0             0.0%    tie     
                                                      wall_time      0.6625s ± 0.0011s      0.6603s ± 0.0010s      -0.34%  TARGET  
                                                                                                                                   
eigenlayer-strategy-manager                 ir        cpu_time       1.5427s ± 0.0018s      1.5437s ± 0.0017s      +0.07%  ~noise  
                                                      creation_size  13,869 ± 0             13,869 ± 0             0.0%    tie     
                                                      cycles         5.3017G ± 6.9299M      5.2986G ± 4.9967M      -0.06%  ~noise  
                                                      instructions   8.8309G ± 31           8.8378G ± 25           +0.08%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   12,650 ± 0             12,650 ± 0             0.0%    tie     
                                                      wall_time      1.5517s ± 0.0019s      1.5524s ± 0.0019s      +0.05%  ~noise  
                                                                                                                                   
etherfi-liquidity-pool                      evmasm    cpu_time       1.9962s ± 0.0036s      1.9931s ± 0.0021s      -0.15%  TARGET  
                                                      creation_size  81,929 ± 0             81,933 ± 0             0.0%    tie     
                                                      cycles         6.8630G ± 11.3215M     6.8432G ± 4.8360M      -0.29%  TARGET  
                                                      instructions   13.7510G ± 84          13.7578G ± 55          +0.05%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   78,786 ± 0             78,790 ± 0             +0.01%  ~noise  
                                                      wall_time      2.0080s ± 0.0034s      2.0047s ± 0.0024s      -0.16%  TARGET  
                                                                                                                                   
etherfi-liquidity-pool                      ir        cpu_time       6.3540s ± 0.0074s      6.3833s ± 0.0036s      +0.46%  BASELINE
                                                      creation_size  72,351 ± 0             72,359 ± 0             +0.01%  ~noise  
                                                      cycles         22.4334G ± 25.0795M    22.5243G ± 11.7681M    +0.41%  BASELINE
                                                      instructions   33.3022G ± 145         33.3436G ± 47          +0.12%  BASELINE
                                                      peak_rss       154 ± 0 MiB            156 ± 0 MiB            +1.61%  BASELINE
                                                      runtime_size   69,944 ± 0             69,952 ± 0             +0.01%  ~noise  
                                                      wall_time      6.3858s ± 0.0075s      6.4156s ± 0.0042s      +0.47%  BASELINE
                                                                                                                                   
eulerswap                                   evmasm    cpu_time       0.7438s ± 0.0013s      0.7428s ± 0.0017s      -0.13%  ~noise  
                                                      creation_size  27,194 ± 0             27,194 ± 0             0.0%    tie     
                                                      cycles         2.4663G ± 5.0121M      2.4553G ± 4.1570M      -0.45%  TARGET  
                                                      instructions   5.2153G ± 31           5.2167G ± 28           +0.03%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   24,718 ± 0             24,718 ± 0             0.0%    tie     
                                                      wall_time      0.7487s ± 0.0012s      0.7476s ± 0.0011s      -0.14%  ~noise  
                                                                                                                                   
eulerswap                                   ir        cpu_time       1.8930s ± 0.0024s      1.8931s ± 0.0015s      +0.01%  ~noise  
                                                      creation_size  24,341 ± 0             24,341 ± 0             0.0%    tie     
                                                      cycles         6.5729G ± 9.0142M      6.5600G ± 5.5169M      -0.2%   TARGET  
                                                      instructions   11.6423G ± 66          11.6593G ± 36          +0.15%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   22,626 ± 0             22,626 ± 0             0.0%    tie     
                                                      wall_time      1.9034s ± 0.0025s      1.9029s ± 0.0016s      -0.02%  ~noise  
                                                                                                                                   
usdc-fiattoken-v2-2                         evmasm    cpu_time       1.2390s ± 0.0018s      1.2456s ± 0.0011s      +0.53%  BASELINE
                                                      creation_size  66,127 ± 0             66,127 ± 0             0.0%    tie     
                                                      cycles         4.2977G ± 5.4226M      4.3173G ± 4.2009M      +0.46%  BASELINE
                                                      instructions   8.6273G ± 27           8.6402G ± 34           +0.15%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   65,291 ± 0             65,291 ± 0             0.0%    tie     
                                                      wall_time      1.2453s ± 0.0018s      1.2523s ± 0.0010s      +0.56%  BASELINE
                                                                                                                                   
usdc-fiattoken-v2-2                         ir        cpu_time       4.0621s ± 0.0055s      4.0860s ± 0.0034s      +0.59%  BASELINE
                                                      creation_size  65,436 ± 0             65,436 ± 0             0.0%    tie     
                                                      cycles         14.3521G ± 20.7276M    14.4231G ± 12.2988M    +0.49%  BASELINE
                                                      instructions   22.6358G ± 114         22.6911G ± 96          +0.24%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   64,777 ± 0             64,777 ± 0             0.0%    tie     
                                                      wall_time      4.0819s ± 0.0049s      4.1057s ± 0.0033s      +0.58%  BASELINE
                                                                                                                                   
frax-stablecoin                             evmasm    cpu_time       0.9312s ± 0.0012s      0.9321s ± 0.0013s      +0.09%  ~noise  
                                                      creation_size  52,445 ± 0             52,445 ± 0             0.0%    tie     
                                                      cycles         3.1793G ± 4.3364M      3.1772G ± 4.2031M      -0.07%  ~noise  
                                                      instructions   6.4634G ± 32           6.4738G ± 27           +0.16%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   44,314 ± 0             44,314 ± 0             0.0%    tie     
                                                      wall_time      0.9368s ± 0.0012s      0.9394s ± 0.0062s      +0.29%  ~noise  
                                                                                                                                   
frax-stablecoin                             ir        cpu_time       3.8302s ± 0.0041s      3.8546s ± 0.0030s      +0.64%  BASELINE
                                                      creation_size  50,288 ± 0             50,288 ± 0             0.0%    tie     
                                                      cycles         13.5247G ± 13.7015M    13.5838G ± 8.9948M     +0.44%  BASELINE
                                                      instructions   21.2962G ± 106         21.3287G ± 68          +0.15%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   41,793 ± 0             41,793 ± 0             0.0%    tie     
                                                      wall_time      3.8494s ± 0.0048s      3.8736s ± 0.0032s      +0.63%  BASELINE
                                                                                                                                   
lido-accounting-oracle                      evmasm    cpu_time       0.6352s ± 0.0011s      0.6342s ± 0.0016s      -0.16%  ~noise  
                                                      creation_size  31,505 ± 0             31,505 ± 0             0.0%    tie     
                                                      cycles         2.1288G ± 3.4059M      2.1220G ± 4.2746M      -0.32%  TARGET  
                                                      instructions   4.4425G ± 47           4.4527G ± 26           +0.23%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   29,042 ± 0             29,042 ± 0             0.0%    tie     
                                                      wall_time      0.6390s ± 0.0010s      0.6381s ± 0.0022s      -0.14%  ~noise  
                                                                                                                                   
lido-accounting-oracle                      ir        cpu_time       2.4094s ± 0.0051s      2.4170s ± 0.0017s      +0.32%  BASELINE
                                                      creation_size  28,201 ± 0             28,201 ± 0             0.0%    tie     
                                                      cycles         8.4440G ± 16.8699M     8.4612G ± 5.9706M      +0.2%   BASELINE
                                                      instructions   13.8730G ± 75          13.8811G ± 55          +0.06%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   26,222 ± 0             26,222 ± 0             0.0%    tie     
                                                      wall_time      2.4216s ± 0.0052s      2.4290s ± 0.0018s      +0.31%  BASELINE
                                                                                                                                   
lido-withdrawal-queue                       evmasm    cpu_time       0.5617s ± 0.0012s      0.5625s ± 0.0006s      +0.15%  ~noise  
                                                      creation_size  25,094 ± 0             25,094 ± 0             0.0%    tie     
                                                      cycles         1.8636G ± 4.3747M      1.8613G ± 1.9188M      -0.12%  ~noise  
                                                      instructions   3.8462G ± 28           3.8461G ± 28           0.0%    tie     
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,881 ± 0             23,881 ± 0             0.0%    tie     
                                                      wall_time      0.5650s ± 0.0011s      0.5662s ± 0.0015s      +0.2%   ~noise  
                                                                                                                                   
lido-withdrawal-queue                       ir        cpu_time       1.5721s ± 0.0034s      1.5802s ± 0.0015s      +0.51%  BASELINE
                                                      creation_size  20,873 ± 0             20,873 ± 0             0.0%    tie     
                                                      cycles         5.4445G ± 10.7768M     5.4659G ± 4.6003M      +0.39%  BASELINE
                                                      instructions   8.7409G ± 48           8.7482G ± 40           +0.08%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   19,963 ± 0             19,963 ± 0             0.0%    tie     
                                                      wall_time      1.5804s ± 0.0038s      1.5885s ± 0.0018s      +0.51%  BASELINE
                                                                                                                                   
lido-wsteth                                 evmasm    cpu_time       0.2444s ± 0.0003s      0.2450s ± 0.0006s      +0.26%  BASELINE
                                                      creation_size  9,875 ± 0              9,875 ± 0              0.0%    tie     
                                                      cycles         784.9695M ± 919.2951k  785.0264M ± 1.4053M    +0.01%  ~noise  
                                                      instructions   1.5805G ± 19           1.5833G ± 17           +0.17%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   8,087 ± 0              8,087 ± 0              0.0%    tie     
                                                      wall_time      0.2502s ± 0.0091s      0.2507s ± 0.0091s      +0.23%  ~noise  
                                                                                                                                   
lido-wsteth                                 ir        cpu_time       0.6394s ± 0.0007s      0.6417s ± 0.0004s      +0.36%  BASELINE
                                                      creation_size  9,704 ± 0              9,704 ± 0              0.0%    tie     
                                                      cycles         2.1865G ± 2.1288M      2.1890G ± 1.2639M      +0.11%  BASELINE
                                                      instructions   3.8299G ± 51           3.8338G ± 16           +0.1%   BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   7,407 ± 0              7,407 ± 0              0.0%    tie     
                                                      wall_time      0.6429s ± 0.0007s      0.6452s ± 0.0007s      +0.37%  BASELINE
                                                                                                                                   
makerdao-dss-jug                            evmasm    cpu_time       0.0836s ± 0.0001s      0.0838s ± 0.0001s      +0.21%  BASELINE
                                                      creation_size  2,928 ± 0              2,928 ± 0              0.0%    tie     
                                                      cycles         223.8806M ± 248.6552k  223.3450M ± 286.9912k  -0.24%  TARGET  
                                                      instructions   443.0696M ± 10         441.6928M ± 6          -0.31%  TARGET  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   2,749 ± 0              2,749 ± 0              0.0%    tie     
                                                      wall_time      0.0843s ± 0.0001s      0.0845s ± 0.0001s      +0.2%   BASELINE
                                                                                                                                   
makerdao-dss-jug                            ir        cpu_time       0.2053s ± 0.0001s      0.2062s ± 0.0002s      +0.47%  BASELINE
                                                      creation_size  2,853 ± 0              2,853 ± 0              0.0%    tie     
                                                      cycles         651.6490M ± 316.8400k  653.1685M ± 524.2868k  +0.23%  BASELINE
                                                      instructions   1.1680G ± 19           1.1704G ± 15           +0.21%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   2,682 ± 0              2,682 ± 0              0.0%    tie     
                                                      wall_time      0.2065s ± 0.0002s      0.2075s ± 0.0003s      +0.47%  BASELINE
                                                                                                                                   
makerdao-dss-pot                            evmasm    cpu_time       0.0813s ± 0.0001s      0.0815s ± 0.0001s      +0.27%  BASELINE
                                                      creation_size  3,021 ± 0              3,021 ± 0              0.0%    tie     
                                                      cycles         214.5858M ± 191.9091k  214.3636M ± 234.8129k  -0.1%   TARGET  
                                                      instructions   428.4735M ± 8          428.9705M ± 8          +0.12%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   2,811 ± 0              2,811 ± 0              0.0%    tie     
                                                      wall_time      0.0832s ± 0.0039s      0.0846s ± 0.0076s      +1.68%  ~noise  
                                                                                                                                   
makerdao-dss-pot                            ir        cpu_time       0.2109s ± 0.0003s      0.2118s ± 0.0001s      +0.43%  BASELINE
                                                      creation_size  3,077 ± 0              3,077 ± 0              0.0%    tie     
                                                      cycles         670.8524M ± 400.8581k  671.8222M ± 365.8156k  +0.14%  BASELINE
                                                      instructions   1.2070G ± 23           1.2095G ± 27           +0.21%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   2,865 ± 0              2,865 ± 0              0.0%    tie     
                                                      wall_time      0.2122s ± 0.0003s      0.2131s ± 0.0002s      +0.44%  BASELINE
                                                                                                                                   
makerdao-dss-vat                            evmasm    cpu_time       0.1616s ± 0.0002s      0.1615s ± 0.0001s      -0.08%  ~noise  
                                                      creation_size  7,248 ± 0              7,248 ± 0              0.0%    tie     
                                                      cycles         493.2916M ± 550.3200k  491.1945M ± 339.6286k  -0.43%  TARGET  
                                                      instructions   1.0284G ± 12           1.0239G ± 13           -0.44%  TARGET  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   7,197 ± 0              7,197 ± 0              0.0%    tie     
                                                      wall_time      0.1630s ± 0.0011s      0.1626s ± 0.0001s      -0.26%  ~noise  
                                                                                                                                   
makerdao-dss-vat                            ir        cpu_time       0.4575s ± 0.0006s      0.4602s ± 0.0008s      +0.58%  BASELINE
                                                      creation_size  6,328 ± 0              6,328 ± 0              0.0%    tie     
                                                      cycles         1.5258G ± 2.2762M      1.5311G ± 2.2155M      +0.35%  BASELINE
                                                      instructions   2.7516G ± 14           2.7576G ± 32           +0.22%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   6,283 ± 0              6,283 ± 0              0.0%    tie     
                                                      wall_time      0.4600s ± 0.0005s      0.4630s ± 0.0011s      +0.64%  BASELINE
                                                                                                                                   
makerdao-dai                                evmasm    cpu_time       0.0978s ± 0.0001s      0.0983s ± 0.0001s      +0.55%  BASELINE
                                                      creation_size  4,222 ± 0              4,222 ± 0              0.0%    tie     
                                                      cycles         274.0584M ± 249.7564k  275.2898M ± 319.1699k  +0.45%  BASELINE
                                                      instructions   552.8662M ± 10         557.0813M ± 18         +0.76%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   3,877 ± 0              3,877 ± 0              0.0%    tie     
                                                      wall_time      0.0985s ± 0.0002s      0.0991s ± 0.0001s      +0.53%  BASELINE
                                                                                                                                   
makerdao-dai                                ir        cpu_time       0.2483s ± 0.0002s      0.2490s ± 0.0002s      +0.3%   BASELINE
                                                      creation_size  4,151 ± 0              4,151 ± 0              0.0%    tie     
                                                      cycles         804.6424M ± 468.0445k  805.9073M ± 827.1762k  +0.16%  BASELINE
                                                      instructions   1.4779G ± 20           1.4805G ± 20           +0.18%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   3,799 ± 0              3,799 ± 0              0.0%    tie     
                                                      wall_time      0.2498s ± 0.0002s      0.2529s ± 0.0076s      +1.25%  ~noise  
                                                                                                                                   
poap                                        evmasm    cpu_time       0.3789s ± 0.0006s      0.3846s ± 0.0004s      +1.5%   BASELINE
                                                      creation_size  21,115 ± 0             21,115 ± 0             0.0%    tie     
                                                      cycles         1.2473G ± 1.7971M      1.2542G ± 864.4807k    +0.55%  BASELINE
                                                      instructions   2.5252G ± 25           2.5379G ± 21           +0.5%   BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   20,721 ± 0             20,721 ± 0             0.0%    tie     
                                                      wall_time      0.3815s ± 0.0011s      0.3869s ± 0.0003s      +1.43%  BASELINE
                                                                                                                                   
poap                                        ir        cpu_time       1.6164s ± 0.0017s      1.6261s ± 0.0021s      +0.6%   BASELINE
                                                      creation_size  19,358 ± 0             19,358 ± 0             0.0%    tie     
                                                      cycles         5.6341G ± 5.5693M      5.6559G ± 5.9158M      +0.39%  BASELINE
                                                      instructions   9.1367G ± 27           9.1476G ± 49           +0.12%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   19,066 ± 0             19,066 ± 0             0.0%    tie     
                                                      wall_time      1.6247s ± 0.0018s      1.6345s ± 0.0026s      +0.6%   BASELINE
                                                                                                                                   
rocketpool-deposit-pool                     evmasm    cpu_time       0.3076s ± 0.0007s      0.3074s ± 0.0003s      -0.06%  ~noise  
                                                      creation_size  14,338 ± 0             14,338 ± 0             0.0%    tie     
                                                      cycles         990.4662M ± 1.3526M    988.3470M ± 758.9463k  -0.21%  TARGET  
                                                      instructions   2.0510G ± 11           2.0616G ± 16           +0.52%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   12,829 ± 0             12,829 ± 0             0.0%    tie     
                                                      wall_time      0.3097s ± 0.0007s      0.3094s ± 0.0003s      -0.1%   ~noise  
                                                                                                                                   
rocketpool-deposit-pool                     ir        cpu_time       0.8934s ± 0.0013s      0.8966s ± 0.0018s      +0.36%  BASELINE
                                                      creation_size  13,039 ± 0             13,039 ± 0             0.0%    tie     
                                                      cycles         3.0680G ± 4.4192M      3.0751G ± 6.2528M      +0.23%  BASELINE
                                                      instructions   5.3980G ± 28           5.4100G ± 28           +0.22%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   11,363 ± 0             11,363 ± 0             0.0%    tie     
                                                      wall_time      0.8981s ± 0.0013s      0.9014s ± 0.0023s      +0.37%  BASELINE
                                                                                                                                   
spark-protocol-pool                         evmasm    cpu_time       1.9605s ± 0.0035s      1.9618s ± 0.0011s      +0.06%  ~noise  
                                                      creation_size  91,618 ± 0             91,618 ± 0             0.0%    tie     
                                                      cycles         6.7906G ± 11.7418M     6.7860G ± 5.3295M      -0.07%  ~noise  
                                                      instructions   13.9540G ± 104         13.9580G ± 52          +0.03%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   90,243 ± 0             90,243 ± 0             0.0%    tie     
                                                      wall_time      1.9717s ± 0.0033s      1.9732s ± 0.0020s      +0.07%  ~noise  
                                                                                                                                   
spark-protocol-pool                         ir        cpu_time       7.2460s ± 0.0097s      7.2758s ± 0.0073s      +0.41%  BASELINE
                                                      creation_size  81,666 ± 0             81,669 ± 0             0.0%    tie     
                                                      cycles         25.6877G ± 32.4297M    25.7753G ± 25.4316M    +0.34%  BASELINE
                                                      instructions   42.1351G ± 163         42.1963G ± 122         +0.15%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   80,778 ± 0             80,781 ± 0             0.0%    tie     
                                                      wall_time      7.2818s ± 0.0105s      7.3112s ± 0.0073s      +0.4%   BASELINE
                                                                                                                                   
tether-usdt                                 evmasm    cpu_time       0.1497s ± 0.0003s      0.1500s ± 0.0003s      +0.21%  BASELINE
                                                      creation_size  7,193 ± 0              7,193 ± 0              0.0%    tie     
                                                      cycles         448.8051M ± 653.2610k  448.8802M ± 685.9687k  +0.02%  ~noise  
                                                      instructions   899.1428M ± 8          900.1663M ± 12         +0.11%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   6,260 ± 0              6,260 ± 0              0.0%    tie     
                                                      wall_time      0.1508s ± 0.0004s      0.1513s ± 0.0005s      +0.27%  ~noise  
                                                                                                                                   
tether-usdt                                 ir        cpu_time       0.5847s ± 0.0016s      0.5864s ± 0.0010s      +0.3%   BASELINE
                                                      creation_size  6,608 ± 0              6,608 ± 0              0.0%    tie     
                                                      cycles         1.9802G ± 5.8572M      1.9832G ± 2.8875M      +0.15%  ~noise  
                                                      instructions   3.3512G ± 36           3.3552G ± 18           +0.12%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   5,461 ± 0              5,461 ± 0              0.0%    tie     
                                                      wall_time      0.5899s ± 0.0067s      0.5895s ± 0.0010s      -0.07%  ~noise  
                                                                                                                                   
uniswap-v2-router02                         evmasm    cpu_time       0.3341s ± 0.0004s      0.3349s ± 0.0005s      +0.24%  BASELINE
                                                      creation_size  16,956 ± 0             16,956 ± 0             0.0%    tie     
                                                      cycles         1.0871G ± 1.6239M      1.0863G ± 925.2167k    -0.07%  ~noise  
                                                      instructions   2.2708G ± 12           2.2722G ± 20           +0.06%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   16,264 ± 0             16,264 ± 0             0.0%    tie     
                                                      wall_time      0.3380s ± 0.0048s      0.3384s ± 0.0036s      +0.12%  ~noise  
                                                                                                                                   
uniswap-v2-router02                         ir        cpu_time       1.1455s ± 0.0016s      1.1504s ± 0.0014s      +0.43%  BASELINE
                                                      creation_size  13,616 ± 0             13,616 ± 0             0.0%    tie     
                                                      cycles         3.9478G ± 5.0451M      3.9575G ± 4.6696M      +0.25%  BASELINE
                                                      instructions   6.4976G ± 41           6.4968G ± 25           -0.01%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   13,142 ± 0             13,142 ± 0             0.0%    tie     
                                                      wall_time      1.1536s ± 0.0068s      1.1565s ± 0.0020s      +0.25%  ~noise  
                                                                                                                                   
uniswap-v3-nonfungible-position-manager     evmasm    cpu_time       0.7764s ± 0.0016s      0.7762s ± 0.0015s      -0.03%  ~noise  
                                                      creation_size  31,663 ± 0             31,663 ± 0             0.0%    tie     
                                                      cycles         2.6168G ± 5.2836M      2.6111G ± 4.7301M      -0.22%  TARGET  
                                                      instructions   5.3510G ± 44           5.3546G ± 28           +0.07%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   28,971 ± 0             28,971 ± 0             0.0%    tie     
                                                      wall_time      0.7812s ± 0.0021s      0.7806s ± 0.0015s      -0.07%  ~noise  
                                                                                                                                   
uniswap-v3-nonfungible-position-manager     ir        cpu_time       2.1442s ± 0.0021s      2.1548s ± 0.0015s      +0.49%  BASELINE
                                                      creation_size  30,002 ± 0             30,002 ± 0             0.0%    tie     
                                                      cycles         7.4924G ± 6.5761M      7.5203G ± 4.6478M      +0.37%  BASELINE
                                                      instructions   12.6526G ± 73          12.6579G ± 52          +0.04%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   27,156 ± 0             27,156 ± 0             0.0%    tie     
                                                      wall_time      2.1552s ± 0.0023s      2.1658s ± 0.0019s      +0.49%  BASELINE
                                                                                                                                   
uniswap-v3-swaprouter02                     evmasm    cpu_time       0.6149s ± 0.0015s      0.6155s ± 0.0008s      +0.1%   ~noise  
                                                      creation_size  21,991 ± 0             21,991 ± 0             0.0%    tie     
                                                      cycles         2.0466G ± 4.2513M      2.0434G ± 2.0602M      -0.16%  ~noise  
                                                      instructions   4.1658G ± 38           4.1678G ± 21           +0.05%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   21,013 ± 0             21,013 ± 0             0.0%    tie     
                                                      wall_time      0.6186s ± 0.0015s      0.6190s ± 0.0008s      +0.08%  ~noise  
                                                                                                                                   
uniswap-v3-swaprouter02                     ir        cpu_time       1.3905s ± 0.0028s      1.3924s ± 0.0020s      +0.14%  ~noise  
                                                      creation_size  18,777 ± 0             18,785 ± 0             +0.04%  ~noise  
                                                      cycles         4.8193G ± 8.7152M      4.8192G ± 5.9650M      0.0%    tie     
                                                      instructions   8.6886G ± 52           8.6988G ± 78           +0.12%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   18,106 ± 0             18,114 ± 0             +0.04%  ~noise  
                                                      wall_time      1.3980s ± 0.0033s      1.3999s ± 0.0024s      +0.14%  ~noise  
                                                                                                                                   
uniswap-v4-position-manager                 evmasm    cpu_time       0.7778s ± 0.0008s      0.7761s ± 0.0012s      -0.22%  TARGET  
                                                      creation_size  26,838 ± 0             26,838 ± 0             0.0%    tie     
                                                      cycles         2.6039G ± 2.8994M      2.5915G ± 3.7002M      -0.48%  TARGET  
                                                      instructions   5.3207G ± 48           5.3241G ± 28           +0.07%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,571 ± 0             23,571 ± 0             0.0%    tie     
                                                      wall_time      0.7828s ± 0.0013s      0.7807s ± 0.0011s      -0.27%  TARGET  
                                                                                                                                   
uniswap-v4-position-manager                 ir        cpu_time       1.9074s ± 0.0038s      1.9070s ± 0.0028s      -0.02%  ~noise  
                                                      creation_size  24,615 ± 0             24,615 ± 0             0.0%    tie     
                                                      cycles         6.6395G ± 13.8418M     6.6372G ± 9.4006M      -0.04%  ~noise  
                                                      instructions   11.4723G ± 35          11.4719G ± 54          0.0%    tie     
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   21,789 ± 0             21,789 ± 0             0.0%    tie     
                                                      wall_time      1.9173s ± 0.0038s      1.9174s ± 0.0033s      0.0%    tie     
                                                                                                                                   
uniswap-v4-quoter                           evmasm    cpu_time       0.2739s ± 0.0005s      0.2732s ± 0.0005s      -0.27%  TARGET  
                                                      creation_size  7,378 ± 0              7,378 ± 0              0.0%    tie     
                                                      cycles         866.2934M ± 803.1684k  861.1017M ± 1.4114M    -0.6%   TARGET  
                                                      instructions   1.7731G ± 24           1.7735G ± 18           +0.02%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   6,281 ± 0              6,281 ± 0              0.0%    tie     
                                                      wall_time      0.2761s ± 0.0012s      0.2752s ± 0.0007s      -0.32%  ~noise  
                                                                                                                                   
uniswap-v4-quoter                           ir        cpu_time       0.4867s ± 0.0007s      0.4868s ± 0.0004s      +0.01%  ~noise  
                                                      creation_size  5,376 ± 0              5,376 ± 0              0.0%    tie     
                                                      cycles         1.6236G ± 1.7142M      1.6197G ± 730.8601k    -0.24%  TARGET  
                                                      instructions   3.0197G ± 31           3.0222G ± 29           +0.08%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   4,651 ± 0              4,651 ± 0              0.0%    tie     
                                                      wall_time      0.4954s ± 0.0094s      0.4947s ± 0.0081s      -0.15%  ~noise  
                                                                                                                                   
wbtc                                        evmasm    cpu_time       0.2542s ± 0.0005s      0.2553s ± 0.0003s      +0.42%  BASELINE
                                                      creation_size  16,877 ± 0             16,877 ± 0             0.0%    tie     
                                                      cycles         818.8739M ± 1.0003M    820.6083M ± 735.4011k  +0.21%  BASELINE
                                                      instructions   1.6524G ± 8            1.6537G ± 11           +0.08%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   15,804 ± 0             15,804 ± 0             0.0%    tie     
                                                      wall_time      0.2580s ± 0.0065s      0.2588s ± 0.0059s      +0.33%  ~noise  
                                                                                                                                   
wbtc                                        ir        cpu_time       1.1266s ± 0.0020s      1.1316s ± 0.0015s      +0.45%  BASELINE
                                                      creation_size  14,282 ± 0             14,282 ± 0             0.0%    tie     
                                                      cycles         3.9181G ± 6.4685M      3.9291G ± 3.6868M      +0.28%  BASELINE
                                                      instructions   6.7326G ± 63           6.7499G ± 30           +0.26%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   12,969 ± 0             12,969 ± 0             0.0%    tie     
                                                      wall_time      1.1328s ± 0.0025s      1.1374s ± 0.0015s      +0.41%  BASELINE
                                                                                                                                   
subsets/openzeppelin-timelock-5.6.1         evmasm    cpu_time       0.8394s ± 0.0018s      0.8422s ± 0.0011s      +0.33%  BASELINE
                                                      creation_size  36,000 ± 0             36,004 ± 0             +0.01%  ~noise  
                                                      cycles         2.8647G ± 4.0395M      2.8702G ± 2.8574M      +0.19%  BASELINE
                                                      instructions   5.9453G ± 39           5.9470G ± 39           +0.03%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   27,580 ± 0             27,584 ± 0             +0.01%  ~noise  
                                                      wall_time      0.8444s ± 0.0017s      0.8473s ± 0.0018s      +0.34%  BASELINE
                                                                                                                                   
subsets/openzeppelin-timelock-5.6.1         ir        cpu_time       2.1599s ± 0.0038s      2.1698s ± 0.0017s      +0.46%  BASELINE
                                                      creation_size  31,131 ± 0             31,141 ± 0             +0.03%  ~noise  
                                                      cycles         7.5857G ± 13.2532M     7.6110G ± 6.6259M      +0.33%  BASELINE
                                                      instructions   13.2764G ± 67          13.3009G ± 66          +0.18%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   23,688 ± 0             23,698 ± 0             +0.04%  ~noise  
                                                      wall_time      2.1711s ± 0.0034s      2.1808s ± 0.0025s      +0.45%  BASELINE
                                                                                                                                   
subsets/aave-pool-3.6.0                     evmasm    cpu_time       2.3133s ± 0.0059s      2.3220s ± 0.0035s      +0.37%  BASELINE
                                                      creation_size  107,536 ± 0            107,536 ± 0            0.0%    tie     
                                                      cycles         8.0431G ± 19.7019M     8.0673G ± 10.1604M     +0.3%   BASELINE
                                                      instructions   16.3678G ± 149         16.3891G ± 61          +0.13%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   102,359 ± 0            102,359 ± 0            0.0%    tie     
                                                      wall_time      2.3256s ± 0.0059s      2.3339s ± 0.0042s      +0.35%  BASELINE
                                                                                                                                   
subsets/aave-pool-3.6.0                     ir        cpu_time       6.4905s ± 0.0117s      6.5209s ± 0.0044s      +0.47%  BASELINE
                                                      creation_size  105,777 ± 0            105,777 ± 0            0.0%    tie     
                                                      cycles         23.0089G ± 41.0325M    23.1047G ± 15.7527M    +0.42%  BASELINE
                                                      instructions   38.5502G ± 270         38.5889G ± 106         +0.1%   BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   100,079 ± 0            100,079 ± 0            0.0%    tie     
                                                      wall_time      6.5223s ± 0.0123s      6.5519s ± 0.0038s      +0.45%  BASELINE
                                                                                                                                   
subsets/seaport-core-1.6                    evmasm    cpu_time       1.6279s ± 0.0027s      1.6292s ± 0.0012s      +0.08%  ~noise  
                                                      creation_size  62,068 ± 0             62,068 ± 0             0.0%    tie     
                                                      cycles         5.6008G ± 6.6104M      5.6012G ± 2.8926M      +0.01%  ~noise  
                                                      instructions   11.5260G ± 84          11.5259G ± 31          0.0%    tie     
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   55,733 ± 0             55,733 ± 0             0.0%    tie     
                                                      wall_time      1.6367s ± 0.0031s      1.6376s ± 0.0015s      +0.06%  ~noise  
                                                                                                                                   
subsets/seaport-core-1.6                    ir        cpu_time       3.9741s ± 0.0065s      3.9803s ± 0.0027s      +0.16%  BASELINE
                                                      creation_size  55,160 ± 0             55,167 ± 0             +0.01%  ~noise  
                                                      cycles         13.9747G ± 22.8371M    13.9904G ± 7.2308M     +0.11%  ~noise  
                                                      instructions   24.5371G ± 202         24.5385G ± 60          +0.01%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   49,206 ± 0             49,213 ± 0             +0.01%  ~noise  
                                                      wall_time      3.9936s ± 0.0061s      3.9993s ± 0.0024s      +0.14%  BASELINE
                                                                                                                                   
subsets/bedrock-cannon-7.0.0                evmasm    cpu_time       0.6679s ± 0.0012s      0.6648s ± 0.0004s      -0.46%  TARGET  
                                                      creation_size  29,594 ± 0             29,594 ± 0             0.0%    tie     
                                                      cycles         2.2462G ± 3.4730M      2.2423G ± 1.4996M      -0.18%  TARGET  
                                                      instructions   4.9323G ± 20           4.9411G ± 43           +0.18%  BASELINE
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   28,917 ± 0             28,917 ± 0             0.0%    tie     
                                                      wall_time      0.6717s ± 0.0013s      0.6687s ± 0.0012s      -0.45%  TARGET  
                                                                                                                                   
subsets/bedrock-cannon-7.0.0                ir        cpu_time       2.2984s ± 0.0042s      2.3048s ± 0.0013s      +0.28%  BASELINE
                                                      creation_size  33,849 ± 0             33,849 ± 0             0.0%    tie     
                                                      cycles         8.0425G ± 14.3766M     8.0564G ± 4.5682M      +0.17%  BASELINE
                                                      instructions   15.3102G ± 129         15.3028G ± 66          -0.05%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   33,276 ± 0             33,276 ± 0             0.0%    tie     
                                                      wall_time      2.3102s ± 0.0038s      2.3159s ± 0.0013s      +0.25%  BASELINE
                                                                                                                                   
subsets/seaport-referenceconsideration-1.6  evmasm    cpu_time       1.1280s ± 0.0020s      1.1321s ± 0.0023s      +0.37%  BASELINE
                                                      creation_size  47,020 ± 0             47,020 ± 0             0.0%    tie     
                                                      cycles         3.8419G ± 4.5948M      3.8511G ± 5.6700M      +0.24%  BASELINE
                                                      instructions   7.9026G ± 45           7.9017G ± 43           -0.01%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   41,353 ± 0             41,353 ± 0             0.0%    tie     
                                                      wall_time      1.1341s ± 0.0022s      1.1382s ± 0.0024s      +0.36%  BASELINE
                                                                                                                                   
subsets/seaport-referenceconsideration-1.6  ir        cpu_time       4.7751s ± 0.0048s      4.8011s ± 0.0032s      +0.54%  BASELINE
                                                      creation_size  42,031 ± 0             42,037 ± 0             +0.01%  ~noise  
                                                      cycles         16.8433G ± 17.8223M    16.9230G ± 13.8575M    +0.47%  BASELINE
                                                      instructions   26.0719G ± 158         26.0679G ± 46          -0.02%  ~noise  
                                                      peak_rss       153 ± 0 MiB            156 ± 0 MiB            +2.12%  BASELINE
                                                      runtime_size   36,624 ± 0             36,630 ± 0             +0.02%  ~noise  
                                                      wall_time      4.7980s ± 0.0042s      4.8239s ± 0.0036s      +0.54%  BASELINE

Comment thread libyul/optimiser/SSAValueTracker.cpp Outdated
Comment on lines +69 to +71
auto cacheIt = m_isSSACache.find(_expression);
if (cacheIt != m_isSSACache.end())
return cacheIt->second;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
auto cacheIt = m_isSSACache.find(_expression);
if (cacheIt != m_isSSACache.end())
return cacheIt->second;
std::optional<bool> cachedSSAStatus = valueOrDefault(m_isSSACache, _expression, std::nullopt);
if (cachedSSAStatus.has_value())
return *cachedSSAStatus;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case one could even write

if (std::optional<bool> cachedSSAStatus = valueOrDefault(m_isSSACache, _expression, std::nullopt))
   ...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check on gcc? This does not compile on clang:

/Users/rodia/projects/solidity/libsolutil/CommonData.h:282:51: error: incompatible operand types ('const std::nullopt_t' and 'bool')
  282 |                 std::is_reference_v<decltype((it == _map.end()) ? std::forward<ValueType>(_defaultValue) : it->second)>,
      |                                                                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ~~~~~~~~~~
/Users/rodia/projects/solidity/libyul/optimiser/SSAValueTracker.cpp:69:46: note: in instantiation of function template specialization 'solidity::util::valueOrDefault<boost::unordered::unordered_flat_map<const std::variant<solidity::yul::FunctionCall, solidity::yul::Identifier, solidity::yul::Literal> *, bool, std::hash<const std::variant<solidity::yul::FunctionCall, solidity::yul::Identifier, solidity::yul::Literal> *>> &, const std::variant<solidity::yul::FunctionCall, solidity::yul::Identifier, solidity::yul::Literal> *, const std::nullopt_t &, void *>' requested here
   69 |         std::optional<bool> cachedSSAStatus = util::valueOrDefault(m_isSSACache, _expression, std::nullopt);

@rodiazet rodiazet Aug 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same error on gcc. Did you have something different in mind?

@clonker clonker Aug 27, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for (auto const& param: _funDef.parameters)
{
solAssert(!m_values.contains(param.name), "Source needs to be disambiguated.");
m_values[param.name] = nullptr;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This design seems unnecessarily error-prone to me. We might have been better off with disallowing nullptr in setValue() and having two separate methods for marking as "unset" and "known to be zero". Then the code would also be self-explanatory without extra comments.

I'd not change this in this PR but we should consider refactoring it after the fix.

Comment thread docs/bugs.json Resolved
Comment thread docs/bugs.json Resolved
Comment thread docs/bugs.json Resolved
Comment thread docs/bugs.json Resolved
Comment thread Changelog.md Resolved
@rodiazet
rodiazet force-pushed the fix-mstore-removal branch from 98e3dcf to 997d88d Compare August 27, 2026 08:38
@rodiazet
rodiazet requested review from cameel and clonker and a lite review from Copilot August 27, 2026 08:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 35 out of 35 changed files in this pull request and generated 1 comment.

Comment thread libyul/optimiser/SSAValueTracker.cpp Resolved
Comment thread libyul/optimiser/SSAValueTracker.cpp Outdated
return true;

// Check cache first
if (auto const cacheIt = m_isSSACache.find(_expression); cacheIt != m_isSSACache.end())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (auto const cacheIt = m_isSSACache.find(_expression); cacheIt != m_isSSACache.end())
if (
auto const cacheIt = m_isSSACache.find(_expression);
cacheIt != m_isSSACache.end()
)

I'd still much prefer the valueOrDefault() version (or even the original) to this. Those declaration ifs are unreadable to me.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how you want to make it compiles. The only solution I was able to find is:

if (std::optional<bool> cachedSSAStatus = util::valueOrDefault(m_isSSACache, _expression, std::optional<bool>{}, util::allow_copy))
		return *cachedSSAStatus;

which to be honest looks like shit or rust :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok, I see the problem. I guess the fact that we want the default to have a different type than the map values (optional<bool> rather than bool) is breaking things. We'd need a new variant specifically for optional like we have with valueOrNullptr() for pointers. Too bad, but not something to solve in this PR. I expected this to be a straightforward suggestion.

Anyway, those ifs are an abomination. Please reformat it as suggested or revert to the original.

@cameel cameel left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are some final remarks from reviewing the tests. Some of them actually seem ineffective because they use constructs that would prevent the store from being eliminated even before the fix. It would be easier to see that if the addition of new tests and the expectation update were not in the same commit.

Also, it seems that the addition of parameter tracking in SSAValueTracker has more visible effects and should be treated as its own change.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not something to do here, but just wanted to say that we need this kind of test often enough that we should probably just add a new test case that prints out evmasm output. Or add an option to do so in Yul tests.

x := add(x, 32)
let b := x
let outLen := 32
mstore(a, 0xAA)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a comment saying that the point of the test is to make sure this mstore survives. In the context of this PR it may be obvious, but not necessarily later, when you see it in isolation. We should make it easy to tell if the test is still correct when updating expectations in bulk.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, that would be easier to verify in Yul output. Why is optimized Yul output enough in yul_optimizer_unused_store_eliminator_without_ssa_transform but not here? Or is it simply that it's much longer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean --ir-optimized? If so, I’m not sure if it always has semantically the same output. For example when generating yul using --ir-optimized the inline assembly code gets wrapped int a function, but for --asm it’s directly in the sub_0: assembly { block.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be semantically equivalent enough, in the sense that the mstore() should not just randomly disappear, regardless of how the code is embedded. So if the bug is fixed, the effects should be visible in --ir-optimized.

Comment on lines +3 to +7
x := calldataload(32)
let a := add(x, 32)
let b := x
let outLen := 32
mstore(a, 0xAA)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful to have a short comment in each test indicating whether a removal is expected or not.

Suggested change
x := calldataload(32)
let a := add(x, 32)
let b := x
let outLen := 32
mstore(a, 0xAA)
x := calldataload(32) // Reassignment; breaks tracking of dependent variables
let a := add(x, 32)
let b := x
let outLen := 32
mstore(a, 0xAA) // Unused, no overlap with [b, b+outLen]

function g() -> r1, r2
{
r1 := calldataload(0)
r2 := calldataload(32)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you meant this?

Suggested change
r2 := calldataload(32)
r2 := add(calldataload(0), 32)

Otherwise this is a case where we would not be able to remove the mstore even without the multi-assignment. calldataload(0) and calldataload(32) are completely independent and can be anything. It's basically [X, Y) vs [X+32, X+64) situation. These have to be treated as an overlap because an Y that would make it overlap exists.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, but it does not change anything. The USE analyses only current function body and additionally SSAValueTracker never adds multi-variable declaration to the tracked values.

@cameel cameel Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is pointless if the mstore() can't be removed. You're saying that it's pointless anyway because there's one more factor that prevents removal?

This sounds like we can't really create an effective test for this case.

Comment on lines +4 to +7
sstore(arg, value)
arg := add(arg, 1)
let value1 := add(value, 1)
sstore(arg, value1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assignment of arg is not the only reason this cannot be eliminated. arg and arg+1 are distinct slots so the first sstore is not redundant.

Same in indirect() below.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add this case for LoopInvariantCodeMotion?

{
    let x := calldataload(0)
    let b := x
    for { let i := 1 } iszero(eq(i, 10)) { i := add(i, 1) } {
        let inv := add(b, 42)
        x := add(x, 32)
    }
}

This is the equivalent of the same case that causes the bug in UnusedStoreEliminator, i.e. code that has SSA variables whose value depends on non-SSA variables.

For a moment I thought that we may have the same bug in LoopInvariantCodeMotion, because it also depends on SSAValueTracker's checking whether a variable is SSA and our fix only adjusts UnusedStoreEliminator. Turns out it's safe because the bug only results in the tracked value being wrong, not in non-SSA variables being misdetected and LoopInvariantCodeMotion does not care about the value - only that it does not change in the loop. In the example above b has the SSA property even though x, which it depends on does not. This means that moving inv before the loop is safe.

Comment thread libyul/optimiser/SSAValueTracker.cpp Resolved
@rodiazet

rodiazet commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Changes related to function parameters tracking separated to #16959.

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

It changes core optimizer soundness logic in a way that can affect compilation correctness across many patterns, so it warrants final human review despite the added regression tests.

Review details
  • Files reviewed: 30/30 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@blishko blishko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit worried that we are treating the symptom and not the underlying cause of this issue.

The underlying problem to me seems to be the use of KnowledgeBase in its "SSA" mode by UnusedStoreEliminator.
As you have correctly noticed, "SSA" mode works correctly only if any of a value's dependencies are never re-assigned.
It seems to me a better fix would be to use the "non-SSA" mode of the KnowledgeBase, rather then discarding all values then have non-SSA dependency.
With the fix, we are losing some valid optimizations, which is a bit unfortunate.

Comment on lines +2 to +23
function f(arg)
{
let b := arg
arg := add(arg, 32)
let outLen := 32
mstore(arg, 0xAA)
return(b, outLen)
}
}

// ----
// step: unusedStoreEliminatorNoSsaTransform
//
// {
// function f(arg)
// {
// let b := arg
// arg := add(arg, 32)
// let outLen := 32
// mstore(arg, 0xAA)
// return(b, outLen)
// }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, it would be OK (and desirable) to actually eliminate the mstore, no?

Comment on lines +2 to +20
let x := calldataload(0)
x := calldataload(32) // Reassignment; breaks tracking of dependent variables
let a := add(x, 32)
let b := x
let outLen := 32
mstore(a, 0xAA) // Unused, no overlap with [b, b+outLen]
return(b, outLen)
}
// ----
// step: unusedStoreEliminatorNoSsaTransform
//
// {
// let x := calldataload(0)
// x := calldataload(32)
// let a := add(x, 32)
// let b := x
// let outLen := 32
// mstore(a, 0xAA)
// return(b, outLen)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, it would be OK (and desirable) to actually eliminate the mstore, no?

rodiazet and others added 6 commits November 23, 2026 12:32
Expectations reflect behavior before the isSSAWithDependencies fix
(but after function-parameter tracking, which now lands first): USE
still incorrectly removes a handful of stores here. The next commit
updates these same expectations to show what the fix changes.

Co-authored-by: Nikola Matić <nikola.matic@ethereum.org>
Updates the expectations added in the previous commit: USE no longer
incorrectly removes stores whose location can't be proven safe once a
dependency has been reassigned outside of SSA form.

Co-Authored-By: Nikola Matić <nikola.matic@ethereum.org>
@rodiazet

Copy link
Copy Markdown
Contributor Author

We decided to merge this as it is, but I made additional analysis in the context of the new, better implementation of the knowledge base which was pushed recently. As a result I prepared an alternative solution which also resolves the issue with the loop-carried dependency reported by the team and also recently by a couple of independent ppl. The solution can be found here. It’s a draft because I haven’t updated the change log and the bug list yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UnusedStoreEliminator may incorrectly remove mstores if its input is not in pseudo-SSA form

7 participants