Repository activity
40458 results across all weeks
Condition re-tested after the join of an inlined check
flambda2 tests the result of an inlined check again after the join, although the branch that produced it has just established the condition:
Thomas Gazagnaire (@samoht)Constant offsets from a tagged index are not folded into the load's immediate offset
Each load at off + k, with off a tagged int, computes b + ((off + 2k) asr 1)
Thomas Gazagnaire (@samoht)Continuous profiling: move `caml_unix_gettimeofday` into the runtime
caml_unix_gettimeofday and caml_unix_gettimeofday_unboxed moved to caml_sys_gettimeofday and caml_sys_gettimeofday_unboxed in the runtime, with the Unix library updated to use them.
David Allsopp (@dra27-js)Continuous profiling: switch to `Gc.counters`
Use Gc.counters instead of Gc.quick_stat (because it's faster)
David Allsopp (@dra27-js)Continuous profiling: use `caml_sys_gettimeofday` in utils/profile.ml
The compiler's profiling subsystem currently uses caml_sys_time_include_children which is based on getrusage to measure timings. This is hilariously expensive (see #6141).
David Allsopp (@dra27-js)Count load instructions in CFG profiles
As per title; useful to benchmark the
Xavier Clerc (@xclerc)DO NOT MERGE - Experimental GC tweaking
At the moment I'm just using this PR/branch while reading the GC implementation to try to understand it better. Eventually there might be some tweaks that would make sense as a proper PR.
Vesa Karvonen (@polytypic)Deduplicate shared types in the zero-alloc backend
Share structures that are currently defined identically in multiple places (e.g. { nor; exn; div }). This is also necessary for later reuse in [@zero_alloc conditional].
Will Sturgeon (@wrsturgeon)Detect ARM64 architecture extensions in the runtime
This threads the ARM arch extension configure options into the runtime + tries detecting them. Currently only doing this for LSE (in anticipation of #6539)
yusumez-jsDo not merge: better subsumption error printing
This is a draft PR that combines:
ainageorgesDo not print irrelevant modes in subsumption errors
Subsumption error messages are currently very verbose: they print the full type of the subject and pattern, including a lot of details that might be irrelevant to the current subsumption error. In this PR, out goal is to hide modes in irrelevant positions. For example, if the mode error is about the innermost return, we don't want to print out the irrelevant…
ainageorgesDo not print out anonymous module signatures in subsumption errors
Subsumption errors are currently very verbose. The general shape of a subsumption error is as follows:
ainageorgesDo not print out the types of mismatching values in a subsumption error
Subsumption errors are currently very verbose. The general shape of a subsumption error is as follows:
ainageorgesDraft PR for #6538 ([arm64] generate `stlr` instead of `dmb ishld; str`)
This PR implements small fixes on top of https://github.com/oxcaml/oxcaml/pull/6538/. Namely:
yusumez-jsDraft PR for #6539 ([arm64] runtime: skip the atomic-RMW fences when the RMW runs as an LSE atomic)
This rebases #6539 on top of main + the arm architecture extension detection PRs. Fixes:
yusumez-jsDummy float-arrays must not have a scannable tag
Dummy blocks which are going to become float-arrays must not be allocated with a scannable tag, as this can cause them to be scanned when overwritten by their final initialized blocks. The included test can SEGV crash if run vigorously enough.
Nick Barnes (@NickBarnes)Dynarray.blit with src_pos max_int raises and leaves the destination corrupt
Dynarray.blit ~src_pos:max_int ~len:1 with ~dst_pos at the end of the destination raises Invalid_argument, as documented, but leaves the destination one element longer with no element there. Every later traversal of it raises.
Mark Shinwell (@mshinwell)Effect.Deep.try_with keeps stack for every effect in bytecode
In bytecode, a handler installed with Effect.Deep.try_with or match_with keeps stack for every effect it handles: with the stacks limited to 8 MB, a million effects end with Stack_overflow. Native code and OCaml 5.4.0 run it in constant stack.
Mark Shinwell (@mshinwell)Equal constant float records are not shared in native code
Native code shares equal structured constants, so p1 == p2 is true for two equal constant pairs, but two equal constant records of floats stay two blocks. OCaml 5.4.0 shares both.
Mark Shinwell (@mshinwell)Experimental optimizations scrutiny infrastructure
This pull request is a proposal for a new
Xavier Clerc (@xclerc)