Skip to content

Commit

Permalink
documentation: Note if-expression optimization in release notes
Browse files Browse the repository at this point in the history
* documentation/source/release-notes/2024.2.rst: Add entry to Compiler
  section.
  • Loading branch information
housel committed Jun 20, 2024
1 parent 338eb33 commit a023760
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions documentation/source/release-notes/2024.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ Compiler
* The build rules for unified executables now properly depend on
copying included run-time libraries such as libunwind.

* Optimizations that allow the type of ``if`` expressions to be more
accurately estimated have been improved. For example, in this
function:

.. code-block::
define function if-example (arg :: false-or(<integer>)) => (result :: <integer>);
min(arg | 20, 30)
end;
the comparison can now be properly inlined because the first
argument to :drm:`min` is known to be an :drm:`<integer>`.

Tools
=====

Expand Down

0 comments on commit a023760

Please sign in to comment.