Repository activity
40458 results across all weeks
Normalize bound-identifier stamps when saving a .cmi
The signature in a cmi contains Ident.t that are currently based on a global stamp counter, which is how many identifiers happened to be allocated while compiling it — which is perturbed by things such as loading its dependencies. This makes the byte representation of the signature volatile even if the signature "morally" stays the same. This defeats conte…
Zesen Qian (@riaqn)One template instantiation per CU
Deduplicate template instantiations so there's only one per compilation unit.
Jack Rickard (@Skepfyr)Optimize csel/cmov better
Two optimizations for csel/cmov
ttebbi-janestreetPeephole: fold add/sub of an immediate into a following lea (amd64)
As per title; I thought at first it should
Xavier Clerc (@xclerc)Prevent noalloc primitives from forcing closures to be alloc
Relax constraints on the Allocation mode axis introduced by primitives.
zhizhuoxinProvide a way to override the meet of inlining arguments
Mark Shinwell (@mshinwell)Provide a way to run the tests with the boot compiler
This makes it possible to run the testsuite with the boot compiler, instead of having to wait for the full compiler to be built. As some tests depend on libraries like ocamlcommon which take a long time to build, tests that require anything more than the stdlib are skipped (see the oxcaml/testsuite/boot-test-list file).
Nathanaëlle Courant (@Ekdohibs)Provide layout poly static data via callbacks
This loads static data by requiring that the drivers pass a callback to Slambda evaluation. Most of them currently error but the opt compiler now loads the static data from the cmx file. To do this, the change also stores the static data in the cmx file, in a file_section (as it's large and we won't always want to load it).
Jack Rickard (@Skepfyr)Reaper solve plumbing
Adds validation for the inputs of the -reaper-solve entrypoint, and plumbs them through to a new function in flambda2.ml so that graph merging can be implemented. Includes a debug print and a test that the debug print fires correctly.
Miriam Vellacott (@mirivella)Reduce frametable size
Rework the native-code frame tables to save space. Six main steps:
Nick Barnes (@NickBarnes)Redundant modifier warning
Warn on redundant kind modifiers. Reuses the existing logic for modalities and adds a warning for non-modal modifiers.
dkalinichenko-jsRelocatable OxCaml: backport test-in-prefix harness
Backport ocaml/ocaml#14014 from OCaml 5.5 and various fixes to it since.
David Allsopp (@dra27)Remove a `test` made redundant by a preceding `and`/`o`r/`xor` (x86 peephole)
Pattern: op src, r; test r, r - where op is one of and/or/xor writing the 64-bit register r.
Xavier Clerc (@xclerc)Remove redundant sign/zero extensions (amd64 peephole)
This pull request adds a simple peephole rule to delete
Xavier Clerc (@xclerc)Remove runtime 5 markers
This is the sequel to #6218, removing the last few runtime 5 markers which were left in at that time to support third-party code which depended on them, as mentioned in that PR description. Extensive cleaning of that third-party code has occurred in the meantime, and will soon be complete. Removed:
Nick Barnes (@NickBarnes)Remove stale CRs in testsuite/tests/codegen
Several CR comments describe codegen deficiencies that the current expected output no longer exhibits:
Xavier Clerc (@xclerc)Remove unused toplevel_my_{,ghost_}region
They have been unused for a long time. Unfortunately, this changes a lot of the fexpr tests because #6405 has not been merged yet -- we probably should merge that one first.
Nathanaëlle Courant (@Ekdohibs)Remove useless constant moves (using CFG value propagation)
(Very early draft, for illustration purposes only.)
Xavier Clerc (@xclerc)Revert "Revert "simplify: Avoid loading cmx files for non-inlinable apply exprs" (#6206)"
This reverts commit 9cfe200.
Nathanaëlle Courant (@Ekdohibs)Runtime contention fixes
Two small fixes to reduce contention in the runtime:
Stephen Dolan (@stedolan)