Repository activity
40458 results across all weeks
Variable coalescing fixes
Jérôme Vouillon (@vouillon)Wasm: split the toplevel function into smaller functions
The toplevel function of a large program can be huge, which makes optimizing compilers (Binaryen, TurboFan, ...) very slow, or even makes them fail.
Jérôme Vouillon (@vouillon)js_of_ocaml: only double-translate functions that may run below an effect handler
Jérôme Vouillon (@vouillon)wasm_of_ocaml: support --effects=double-translation
Functions are compiled in direct style, and the functions that may be involved in the handling of effects (see Partial_cps_analysis) also get a CPS version, as with js_of_ocaml. Both versions share a single closure, whose type is a subtype of the direct-style closure type of the same arity: it holds the direct-style code pointers followed by the code pointer…
Jérôme Vouillon (@vouillon)oxcaml-compiler: fix dune-ignore patch
Looks like upstream has changed its implementation and now applying the patch fails.
Shun Ueda (@shunueda)(DRAFT) Attach cmi paths to interface references
Based on #7028 (refactor-cu), which this PR's base branch is set to; only the last few commits are new here.
Zesen Qian (@riaqn)(for benchmarking)
#7266 #7278 #7293 #7329 #4400
Max Slater (@TheNumbat)AES intrinsics
Implements intrinsics for the amd64 AES extension, which is now enabled by default.
Max Slater (@TheNumbat)Add -reaper-rebuild: resume compilation from a .cmx file and a solution
This PR adds a separate rebuild invocation (-reaper-rebuild) to the compiler. It allows rebuilding (i.e., resuming the reaper from a solution) once -reaper-solve has been used to construct a solution file.
Simon Spies (@spiessimon)Add -reaper-solve: whole-program Reaper solve producing .ltosol files
This PR adds support for executing the solve part of link-time optimization in a separate ocamlopt invocation. That is, when invoked with -reaper-solve -o solution.ltosol a.cmx b.cmx, the compiler will retrieve the reaper data from a.cmx and b.cmx (compiled with -lto-support) and then execute the solve step of the reaper and write the result into solution.lt…
Simon Spies (@spiessimon)Add -support-lto: store the Reaper's LTO data in .cmx files
This PR adds the first piece of the link-time optimization machinery, the -support-lto mode. When -support-lto is passed, the reaper is not executed as normally. Instead, only the traverse pass is executed and the resulting intermediate representation is stored in .cmx files alongside other data for resuming in a separate process.
Simon Spies (@spiessimon)Add -syntax-quotations and -no-syntax-quotations flags
Make syntax quotation a compiler flag instead of configure-time.
Jacob Van Buren (@jvanburen)Add CSE across join points to the CFG backend (`-cfg-cse-join-points`)
Cfg_cse used to reset its value numbering at every join point,
Xavier Clerc (@xclerc)Add SSA intermediate representation between Cmm and CFG
TL;DR
ttebbi-janestreetAdd dead store elimination to the CFG backend (`-cfg-dse`)
Stacked on #6832 (CSE across join points), itself stacked on #7300 (CSE correctness fixes) and #7123 (store-to-load forwarding).
Xavier Clerc (@xclerc)Add linker-level dead code elimination with --gc-sections
Vibe-coded proof of concept.
Luke Maurer (@lukemaurer)Add prefetching to Patricia trees.
(As per title, more benchmarking is needed but it
Xavier Clerc (@xclerc)Add rotate instructions, primitives, and functions
Rotate!
Nick Barnes (@NickBarnes)Add store-to-load forwarding to CFG CSE
After a plain store, record an equation in the mutable-load
Xavier Clerc (@xclerc)Add support for annotating parameters as contractive with [@rec]
This PR adds support for a [@rec] annotation on type parameters to indicate that the parameter is contractive. If a type constructor t is contractive then a recrusive type like:
Leo White (@lpw25)