Repository activity
40458 results across all weeks
flambda2: fix comparison-to-zero rewrite dropping outer signedness
Summary
Luke Maurer (@lukemaurer)flambda2: fix comparison-to-zero rewrite dropping outer signedness
Updated and cleaned-up version of #6497 because I don't have the rights to push to it.
Nathanaëlle Courant (@Ekdohibs)flambda2[types]: Variable.Lmap.t in env extensions with extra variables
Reducing iterations on the Int_ids hashes order is always good, especially across renamings.
Basile Clément (@bclement-ocp)flambda: make function_slots carry their size
Slot_offsets depend on the invariant that all function_slots have the same size. This ensures that in the types, and will make #7233 simpler.
Nathanaëlle Courant (@Ekdohibs)flambda[types]: Follow aliases of removed variables
Otherwise, we can lose information due to additional existential variables.
Basile Clément (@bclement-ocp)functorize: derive the bundle's block format from the -cmi-file coercion
transl_functorization hardcoded a 2-field main module block format, but a valid -cmi-file may narrow the [Intf; Make] pair, so the declared format and the coerced block disagreed: flambda2 emits one load per declared field, and the out-of-bounds Block_load traps at run time (bytecode ignores the field count and works).
Zesen Qian (@riaqn)js_of_ocaml: bring in additional fixes and changes
⚠️ Each commit is independent from each other, please avoid squashing
Robin Ricard (@rricard)js_of_ocaml: merge in upstream as of 2026-09-25
⚠️ Do not squash to conserve history of the subtree
Robin Ricard (@rricard)js_of_ocaml: regenerate js_of_ocaml_stubs.c and catch stale promoted sources in CI
Summary
Jacob Van Buren (@jvanburen)js_of_ocaml: suggestions from upstream over OxCaml patching
Implements suggestions from @vouillon discussed in #7073.
Robin Ricard (@rricard)ocamltest: Make `set` work sensibly within `split`
Each set has a global effect and can only run once, which is a problem
Luke Maurer (@lukemaurer)ppxlib: realign patching to prep for pplib 0.38
This realigns ppxlib to the latest changes we're tracking.
Robin Ricard (@rricard)reaper: keep unboxed fields in a fixed traversal order
This is #7235 reopened, which github somehow closed while I was trying to reorder the stack.
Nathanaëlle Courant (@Ekdohibs)reaper: make closures always have a source
I think this is a bug that is not reachable currently, but due to how sources are handled (a block is said to have a source if one of its fields have a source, where it should be if all of its non-function-slot fields have a source, but this is hard to write), sets of closures with no value slots and only deleted code_ids will miss their has_source.
Nathanaëlle Courant (@Ekdohibs)reaper: make rebuild take [rewrite_kind_with_subkind] as parameter
In preparation for link-time optimization, this PR moves the rewriting of types to the rebuild phase and keeps the rewriting of kinds in the solve phase.
Simon Spies (@spiessimon)reaper: parameterise the analysis by an analysis scope
This PR introduces the concept of an analysis scope in the reaper in preparation for link-time optimization. When doing link-time optimization, the reaper is no longer analyzing a single unit but instead a collection of compilation units. This requires making several parts of the analysis parametric over the scope it is running in.
Simon Spies (@spiessimon)reaper: read params and result arities from the code metadata
This is #7234 reopened, which github somehow closed while I was trying to reorder the stack.
Nathanaëlle Courant (@Ekdohibs)reaper: remove slots never used in projections from graph
That way, the analysis is improved when not using -reaper-local-fields.
Nathanaëlle Courant (@Ekdohibs)simplify: being tupled is part of a function's effective arity
This makes it harder to forget to check the is_tupled boolean.
Basile Clément (@bclement-ocp)simplify: prevent miscompilation which incorrectly promoted tupled calls to known arity
Note that this is a quick fix to prevent miscompilation. I have an idea to improve that code so that it is able to (correctly) produce known_arity calls in more cases, but this will be a separate PR after this fix.
Nathanaëlle Courant (@Ekdohibs)