mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More information about --yul-optimizations option in READMEs and docs
This commit is contained in:
@@ -1047,6 +1047,9 @@ You can override this sequence and supply your own using the ``--yul-optimizatio
|
||||
|
||||
solc --optimize --ir-optimized --yul-optimizations 'dhfoD[xarrscLMcCTU]uljmul'
|
||||
|
||||
The order of steps is significant and affects the quality of the output.
|
||||
Moreover, applying a step may uncover new optimization opportunities for others that were already
|
||||
applied so repeating steps is often beneficial.
|
||||
By enclosing part of the sequence in square brackets (``[]``) you tell the optimizer to repeatedly
|
||||
apply that part until it no longer improves the size of the resulting assembly.
|
||||
You can use brackets multiple times in a single sequence but they cannot be nested.
|
||||
|
||||
Reference in New Issue
Block a user