Repository activity
40458 results across all weeks
Only use guard pages for currently-active stacks.
Enable millions of fibers without stack checks.
Nick Barnes (@NickBarnes)Optimize Patricia tree iterator and leapfrog join
This PR simply extracts the changes to algorithms from #7316,
Xavier Clerc (@xclerc)Pass Ox Ptr values to C as pointers
Experimental draft PR that adds @raw_ptr annotations to parameters of external calls, which are understood as a value_or_null & bits64 value, such as an Ox.Ptr.t. The compiler adds the two words of the fat pointer together to get a single address word, which can be passed to a C function expecting a pointer.
Nick Barnes (@NickBarnes)Peephole optimise imul to lea for multipliers 3,5,9.
We already use lea in place of imul for simple constant multipliers in some places. In experimenting with writing hash functions in OxCaml, @nmatschke found some places where that was not done. This adds a peephole stage on the backend to pick up those cases.
Nick Barnes (@NickBarnes)Preserve non-destructive substitution through Typedtree
Will Sturgeon (@wrsturgeon)Profile find_in_pending_manifests calls
Follow-up to #6951: wraps the find_in_pending_manifests calls in Load_path with Profile.record_call ~accumulate:true, so time spent lazily loading pending hidden manifests shows up in -dprofile output alongside the existing load_visible_manifests / enqueue_hidden_manifests counters.
Zesen Qian (@riaqn)Reaper: answer rebuild's queries at solve time
This PR introduces an optimization in the reaper: it precomputes the queries asked at build time. That is, the datalog queries the rebuild needs are recorded during traversal, run in bulk once the fixpoint is solved, and captured as plain values. [Rebuild_solution] packages the query results with the unboxing decisions and code changes. The rebuild consumes …
Simon Spies (@spiessimon)Reaper: carry the solved slot offsets in the rebuild solution
In preparation of link-time optimization, this PR stores the solved slot offsets in the rebuild solution.
Simon Spies (@spiessimon)Reaper: let the traversal know whether the returned value escapes
This PR tweaks an aspect of the reaper's traversal: it conditionalizes whether we want the final return of a compilation unit to be marked as escaping. It is escaping when we run the reaper per compilation unit, but not escaping when the reaper runs for link time optimization.
Simon Spies (@spiessimon)Reaper: run a flat datalog schedule under -reaper-solve
This PR changes the fixpoint iteration schedule when compiling with link-time optimizations. Instead of a two tier schedule, we use a schedule.
Simon Spies (@spiessimon)Reaper: support rebuilding without typing information
This PR tweaks the rebuild step of the reaper to make its typing environment optional. This is useful for link-time optimization, where there is no need to produce the final typing environment.
Simon Spies (@spiessimon)Recheck constraints after refining parameters from manifests
Reject:
dkalinichenko-jsRecompute type declaration variance after module dependency elimination
Title. #6762 exposed an edge case where code in Ctype.update_level was not properly expanding parametrized constructors with phantom parameters through aliases, because those aliases had imprecise variance information. Now we recompute type declaration variance after module dependency elimination. See tests, before and after the change, for more context.
dkalinichenko-jsRecord compiler profiling in Dune action traces
Liam Stevenson (@liam923)Record compiler timings in Dune action traces
PR for testing
Liam Stevenson (@liam923)Record only direct dependencies in cmi import tables
The import table of a cmi now records only the units whose cmis were actually read during compilation, each with its own interface CRC, instead of the transitive closure of dependencies accumulated through a consistency table.
Zesen Qian (@riaqn)Refactor hand-written print functions
This refactors a bit of printing code that is common to a lot of printers for flambda2 structures into separate functions in the Misc module, that can be called to simplify the writing of printing function, especially those that print a list of fields.
Guillaume Bury (@Gbury)Register allocation: fix handling of per-function parameters
As per title; the laziness was capturing the
Xavier Clerc (@xclerc)Register allocators: use different costs for hot and cold blocks
As per title; there is something wrong in the
Xavier Clerc (@xclerc)Remove -basic-block-sections.
The flag had no users and no prospective users, and did not work:
Xavier Clerc (@xclerc)