Skip to content

Commit

Permalink
Optimizer docs: Document LiteralRematerialiser
Browse files Browse the repository at this point in the history
  • Loading branch information
cameel committed Apr 25, 2024
1 parent af0af5c commit 5d02c2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/internals/optimizer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,12 @@ in split or pseudo-SSA form.
LiteralRematerialiser
^^^^^^^^^^^^^^^^^^^^^

To be documented.
If a variable referenced in an expression is known to have a literal value, replaces that use of
the variable with the literal.

This is mostly used so that other components do not have to rely on the DataflowAnalyzer.

Prerequisites: Disambiguator, ForLoopInitRewriter.

.. _load-resolver:

Expand Down

0 comments on commit 5d02c2f

Please sign in to comment.