More information about --yul-optimizations option in READMEs and docs

This commit is contained in:
Kamil Śliwak
2020-05-08 22:29:57 +02:00
parent dc5612467f
commit e8aec6de54
3 changed files with 23 additions and 1 deletions
+3
View File
@@ -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.