8000 Deterministic order for `lets_to_introduce` by bclement-ocp · Pull Request #4235 · oxcaml/oxcaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Deterministic order for lets_to_introduce #4235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bclement-ocp
Copy link
Contributor

This patch uses a Variable.Lmap instead of a Variable.Map to record de-duplicated continuation parameters, ensuring a deterministic (i.e. independent of Int_ids hasing) order of the let expressions introduced to replace them.

This helps making comparisons between different runs (e.g. with different options) using the flambda2-compare library.

This patch uses a `Variable.Lmap` instead of a `Variable.Map` to record
de-duplicated continuation parameters, ensuring a deterministic (i.e.
independent of `Int_ids` hasing) order of the `let` expressions
introduced to replace them.

This helps making comparisons between different runs (e.g. with
different options) using the `flambda2-compare` library.
@bclement-ocp bclement-ocp requested a review from Gbury June 30, 2025 09:39
@bclement-ocp bclement-ocp added the flambda2 Prerequisite for, or part of, flambda2 label Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flambda2 Prerequisite for, or part of, flambda2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0