Repository activity
40458 results across all weeks
Fix projections from non-`value` `[@@unboxed]` inline records
For a [@@unboxed] inline-record constructor, the jkind on the declaration and the sort on the constructor are incorrectly always value, causing errors for programs such as:
Ryan Tjoa (@rtjoa)Fix record label recovery
This fixes a bug in type recovery where unbound record labels would cascade into a mode error along staticity. The first commit demonstrates the bug, and the latter ones fix it.
Liam Stevenson (@liam923)Fix the places where apply_renaming don't share
And add a test for that
Pierre Chambart (@chambart)Flambda2 fails to inline away optional argument wrappers
When reviewing the testsuite, I noticed a test asmcomp/optargs.ml from upstream OCaml which is disabled in OxCaml. The relevant part is as follows:
Stephen Dolan (@stedolan)Flambda2: route recursive numeric adapters back to their worker
An [@unboxable] recursive numeric worker can call its boxed wrapper at each iteration. The heuristic recursion-depth check rejects that wrapper before the normal stub-inlining decision. A single-accumulator recurrence consequently allocates four minor words per iteration and loses its tail call at O2/O3.
mmm00007Follow the relation variables and function parameters
We want to know when the speculative inlining is probably useful. For that we want to track the relation between the arguments and their uses. This is a first step for tracking that relation.
Pierre Chambart (@chambart)Identify the CFG entry explicitly in CSE
After #7836 guarantees no dead trap
Xavier Clerc (@xclerc)Improve warnings on `deref_` with unused variables
This makes warnings on unused deref_ patterns more strict:
Benjamin Peters (@bn-peters)Int compare externals
Declare Int_replace_polymorphic_compare operators as externals
Alec Singer (@alecsinger)Internal assembler: mark .rodata sections as allocated
Internal assembler: mark .rodata sections as allocated
Gustaf Rydholm (@aktersnurra)JSIR: ocamltest integration
Makes ocamltest support JSIR so that we can have JSIR tests in the build system.
Leo Lee (@smjleo)JSIR: pass in external call hints to JSOO
JSOO now supports passing in optimisation hints in Extern calls so that it can generate more optimised code (see #7509). This PR passes these hints in the JSIR pass so that JSOO can take advantage of them. See the README for more details.
Leo Lee (@smjleo)JSIR: small fixes to translation
This PR makes two small changes to the JSIR translation.
Leo Lee (@smjleo)JSIR: support effects
This PR enables support for effects with JSIR, and re-enables the tests in effect-syntax, effects and effects-safe for JSIR.
Leo Lee (@smjleo)Layout poly - merge fracture and eval
This merges the slambda fracturing and eval passes into one slambda pass, which means there's no longer a slambda IR either. This is mostly motivated by simplicity, trying to accurately model evaluation order etc in slambda was hard and writing it as one pass is arguably easier than having it as two.
Jack Rickard (@Skepfyr)MacOS/ARM64: small-int stack args use a right-sized write
On MacOS/ARM64, small integer arguments passed on the stack only consume their natural width of storage. At present, we write each one with a 32-bit write (and those writes are emitted in the right order to avoid overwrites). This PR changes that to use a right-sized write.
Nick Barnes (@NickBarnes)Make `'a box` cross as `immutable_data with 'a`
Draft
Zack Eisbach (@zackbach)Make `Copaque` take a machtype payload
This fixes a hidden bug in Select_utils.oper_result_type. Currently, all callers avoided the bug by special-casing Copaque or didn't rely on the incorrect answer. Those special cases have been deleted.
James Rayman (@jra4)Make a flambda_arity container
There are a few new things that wants to match arguments to parameters (specialisation and param usefulness).
Pierre Chambart (@chambart)Make dead trap handler elimination unconditional
As per title: over time elimination has
Xavier Clerc (@xclerc)