Repository navigation
Propagate missing Cmm value kind - #13759
Conversation
|
I might consider also adding the information on the return value of calls. |
| val get_field_gen : | ||
| Asttypes.mutable_flag -> expression -> int -> Debuginfo.t -> expression | ||
| ?memory_chunk:memory_chunk -> Asttypes.mutable_flag -> expression -> int -> | ||
| Debuginfo.t -> expression |
There was a problem hiding this comment.
I think the ideal parameter order would be to have ptr first, as memory_chunk and mut rather depend on the offset, but this is okay. Oh, could you maybe mention the parameter in the documentation comment?
There was a problem hiding this comment.
I kept the order of the constructor parameters. If you think this should be put elsewhere I'm ok with it.
|
Unfortunately, this will make an existing bug much more common because the type information on static catches is often incorrect. See this PR on the Jane Street branch for the existing bug and a fix. |
I was not trying to suggest that, on the contrary I would rather merge this one if it is easy, rather than the atomic-stuff PRs that are blocked on the fact that I don't know which approach is best (and we lack feedback/help from other people to make a decision). |
Some type information are still available in clambda but not propagated to Cmm.
This PR propagates those information in on function parameters and on loads.
Those added information are going to be mainly used to compute the frame descriptors.
For instance in this example there is one less scanned value slot in the frame descriptor for the first recursive call. This mean that the frame descriptor are a bit smaller and some integers are not going to be scanned while walking the stack.