Repository activity
40458 results across all weeks
Extend .cmx/.cmo files with a data field for laws
Building on #7972, this PR adds support for storing the data of laws in .cmx/.cmo files. It additionally adds a small tool, ocamllaws, for retrieving the data and printing it. To decouple the plumbing of this change from the actual work (i.e., producing the law data), this PR introduces an abstract type Laws_data.t but stubs out the implementation.
Simon Spies (@spiessimon)Extend SSA reduce to support moves between blocks
As per title: add a third constructor to reduction,
Xavier Clerc (@xclerc)Extend operation sinking (Partial Dead Code Elimination) on SSA to also move heap allocations
After https://github.com/oxcaml/oxcaml/pull/8010 has added the identification of
Xavier Clerc (@xclerc)FDO: Annotations in fexpr
Adds printing FDO annotation support to Fexpr on calls + branches. #7531 already added it for entry counters. This PR adds it for calls and switch arms (via printing the entire Branch_annotation). Parsing is not implemented.
yusumez-jsFDO: Function body hash
Adds Fdo_body_hash which computes function body hashes. Function bodies need to be distinguished between edits that might change the "shape" of the body (in particular, what the counter indices + the counts gathered from a profile depend on). This is achieved via selectively hashing the Lambda AST using Fdo_prehash.
yusumez-jsFDO: Function identities from Lambda
Adds Fdo_function_naming to handle giving FDO identities for functions during Lambda_to_flambda.
yusumez-jsFDO: Insert counters during closure conversion
Adds Fdo_instrumentation, which exposes functions to help insert call and branch counters given the corresponding Lambda terms. These are then called during closure conversion. The counters are threaded through the closure conversion IR and ultimately inserted into flambda terms.
yusumez-jsFDO: Push counters through Cmm
Adds FDO counters for function entry, calls, and branches to Cmm, and pushes them through the translation from Flambda to Cmm.
yusumez-jsFDO: Push counters through Simplify
(NOTE: this PR description is outdated. I will update it soon.)
yusumez-jsFatal error "let-rec group of [lfunction] declarations have inconsistent alloc modes" with mutual let rec + partial application
yusumez-jsField of a stack block is read after its region has ended (exclave_ in both arms of an if)
A field read from a stack-allocated block is computed after the region has ended when the function ends with exclave_ calls of a local function in both arms of an if; the slot has been reused by then. With a string field the program ends with a segmentation fault.
Mark Shinwell (@mshinwell)Field of a stack block is read after the region of a try has ended
Inside a try, a field read from a stack-allocated block and passed in the raised exception is computed in the handler, after the region of the try has ended and the slot has been reused. With a string field the program ends with a segmentation fault; the wrong value can also reach the caller inside the exception.
Mark Shinwell (@mshinwell)Fields and `&` imply `addressable`; singleton `inherit` fields
We make three coupled changes.
Ryan Tjoa (@rtjoa)First Futamura projection of ocamltest
(maybe a fancy title will make this boring refactoring PR seem interesting)
Stephen Dolan (@stedolan)Fix Static_const.compare for immutable float blocks
Fixes #8079.
Mark Shinwell (@mshinwell)Fix amd64 compare-and-set accumulator clobber
As per title: rax is clobbered by
Xavier Clerc (@xclerc)Fix disabling AVX
Two issues:
Max Slater (@TheNumbat)Fix f32 poly compare
Float32 polymorphic comparison should be setting Caml_state->compare_unordered if either of the arguments are nan.
Max Slater (@TheNumbat)Fix f64->f16 double rounding in bigarray
Currently, caml_float16_of_double rounds to f32 and then to f16, which is not equivalent to rounding directly to f16.
Max Slater (@TheNumbat)Fix int128 arithmetic on shared regs
The first step of int128 add/sub overwrites the first operand, which is incorrect if the same register is used for a later operand. We can fix this by assuring the first and last operands are distinct.
Max Slater (@TheNumbat)