Skip to content

Add value_kind for blocks to propagate types from the lambda#382

Merged
mshinwell merged 28 commits intoocaml-flambda:flambda2.0-stablefrom
chambart:more_value_kinds_flambda
Jul 7, 2021
Merged

Add value_kind for blocks to propagate types from the lambda#382
mshinwell merged 28 commits intoocaml-flambda:flambda2.0-stablefrom
chambart:more_value_kinds_flambda

Conversation

@chambart
Copy link

This is required to unbox blocks arguments of recursive continuations.
Variants are not handled.

Should the non flambda part be pushed upstream, and when ?

@mshinwell
Copy link

Not exactly sure about upstreaming, but it would be useful to split this PR in two, one for the upstream and one for the Flambda 2 parts.

Copy link

@lpw25 lpw25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed the typeopt.ml parts. I think the use of a visited set should be replaced by a fuel parameter.

@mshinwell
Copy link

@lpw25 Please could you review this again

@mshinwell mshinwell requested a review from lpw25 June 18, 2021 16:48
Copy link

@lpw25 lpw25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typeopt.ml bits look fine now.

@chambart chambart force-pushed the more_value_kinds_flambda branch 2 times, most recently from a256c71 to 9cb0ed8 Compare June 22, 2021 12:46
@chambart
Copy link
Author

I ended up adding the dead let handling specifically in expr_builder because it uses non-optimising let introduction functions.

@chambart chambart force-pushed the more_value_kinds_flambda branch from 9cb0ed8 to a8826e4 Compare June 24, 2021 13:42
@mshinwell mshinwell force-pushed the more_value_kinds_flambda branch from 2431b3c to d1763b5 Compare July 6, 2021 10:21
@mshinwell
Copy link

I've made a few changes which will hopefully fix the CI, then will merge.

@mshinwell mshinwell force-pushed the more_value_kinds_flambda branch from b4e3ffc to bf328a6 Compare July 7, 2021 14:46
@mshinwell mshinwell merged commit 93d73fe into ocaml-flambda:flambda2.0-stable Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants