Skip to content

[release/11.0.1xx] Optimize inline members of recursive groups on demand - #21024

Open
github-actions[bot] wants to merge 3 commits into
release/11.0.1xxfrom
backport/pr-21017-to-release/11.0.1xx
Open

github-actions[bot] wants to merge 3 commits into
release/11.0.1xxfrom
backport/pr-21017-to-release/11.0.1xx

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #21017 to release/11.0.1xx

/cc @abonie @majocha

Note: Release notes and eng/common files are excluded from this backport. If release notes are needed, they should be added manually to the appropriate version file for this branch.

Customer Impact

Testing

Risk

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

A member can use an inline member of the same recursive group through an
inline function, for example `a * x` with `static member inline (*)`. The
trait call that names the inline member appears only after the optimizer
inlines FSharp.Core `(*)`. The predicted dependency order cannot find this
dependency, so the optimizer reported FS1114.

The optimizer now records the inline vals of the group elements that it did
not optimize yet. When a lookup finds such a val, the optimizer optimizes its
element immediately. Each element commits its effect on the optimization
state in source order. This change removes the dependency-order scheduler.

Fixes #21016
The test runner executes the compiled program in the test process, so
exit stopped the test host. Use an entry point that fails on a wrong
result.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants