Skip to content

Commit 548a4b4

Browse files
authored
Merge pull request #13474 from ethereum/add-note-about-peephole-optimizer
Add note about peephole optimizer in docs
2 parents 7351f6d + efe558a commit 548a4b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/internals/optimizer.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ One can use ``solc --ir-optimized --optimize`` to produce an
2626
optimized Yul IR for a Solidity source. Similarly, one can use ``solc --strict-assembly --optimize``
2727
for a stand-alone Yul mode.
2828

29+
.. note::
30+
The `peephole optimizer <https://en.wikipedia.org/wiki/Peephole_optimization>`_ and the inliner are always
31+
enabled by default and can only be turned off via the :ref:`Standard JSON <compiler-api>`.
32+
2933
You can find more details on both optimizer modules and their optimization steps below.
3034

3135
Benefits of Optimizing Solidity Code

0 commit comments

Comments
 (0)