Skip to content

Commit 4e5a525

Browse files
authored
Merge pull request #13650 from Andy53/document-optimized-cleanup-process
update using-the-compiler.rst with details of optimizer cleanup sequence
2 parents 2fb7205 + 4e035c4 commit 4e5a525

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/using-the-compiler.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,18 @@ Input Description
287287
// Improve allocation of stack slots for variables, can free up stack slots early.
288288
// Activated by default if the Yul optimizer is activated.
289289
"stackAllocation": true,
290-
// Select optimization steps to be applied.
291-
// Optional, the optimizer will use the default sequence if omitted.
290+
// Select optimization steps to be applied. It is also possible to modify both the
291+
// optimization sequence and the clean-up sequence. Instructions for each sequence
292+
// are separated with the ":" delimiter and the values are provided in the form of
293+
// optimization-sequence:clean-up-sequence. For more information see
294+
// "The Optimizer > Selecting Optimizations".
295+
// This field is optional, and if not provided, the default sequences for both
296+
// optimization and clean-up are used. If only one of the options is provivded
297+
// the other will not be run.
298+
// If only the delimiter ":" is provided then neither the optimization nor the clean-up
299+
// sequence will be run.
300+
// If set to an empty value, only the default clean-up sequence is used and
301+
// no optimization steps are applied.
292302
"optimizerSteps": "dhfoDgvulfnTUtnIf..."
293303
}
294304
}

0 commit comments

Comments
 (0)