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:
@@ -4,6 +4,7 @@ planned state of the optimiser.
|
||||
|
||||
Table of Contents:
|
||||
|
||||
- [Selecting optimisations](#selecting-optimisations)
|
||||
- [Preprocessing](#preprocessing)
|
||||
- [Pseudo-SSA Transformation](#pseudo-ssa-transformation)
|
||||
- [Tools](#tools)
|
||||
@@ -33,6 +34,17 @@ the following transformation steps are the main components:
|
||||
- [Redundant Assign Eliminator](#redundant-assign-eliminator)
|
||||
- [Full Function Inliner](#full-function-inliner)
|
||||
|
||||
## Selecting optimisations
|
||||
|
||||
By default the optimiser applies its predefined sequence of optimisation steps to the generated assembly.
|
||||
You can override this sequence and supply your own using the `--yul-optimizations` option:
|
||||
|
||||
``` bash
|
||||
solc --optimize --ir-optimized --yul-optimizations 'dhfoD[xarrscLMcCTU]uljmul'
|
||||
```
|
||||
|
||||
There's a [table listing available abbreviations in the optimiser docs](/docs/yul.rst#optimization-step-sequence).
|
||||
|
||||
## Preprocessing
|
||||
|
||||
The preprocessing components perform transformations to get the program
|
||||
|
||||
Reference in New Issue
Block a user