Repository activity
40458 results across all weeks
Fix an incorrect `fun_ret_type` in `intermediate_curry_functions`
The fun_body is a Calloc of a closure, so it returns a value. The incorrect fun_ret_type was not being used anywhere. It was caught by a child PR implementing machtype-checking.
James Rayman (@jra4)Fix missing unused-open warning for anonymous modules
Opening an anonymous module, e.g. the output of a functor, a first-class module, or an inline struct ... end, would not trigger an unused-open warning. This patch fixes that behaviour:
Jacob Thomas Errington (@tsani)Flambda: simplify comparisons against integer min/max values
This pull request adds a couple of rewrites
Xavier Clerc (@xclerc)Flatten representation of product-containing singleton blocks on bytecode
Today, the following two types have the same layout but are represented differently on bytecode:
Zack Eisbach (@zackbach)Follow 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)Fuzzer MVP
Add fuzzer MVP. Currently only contains a random program generator with a small subset of OxCaml.
hwasilewskijsGive `let exception` a local tyvar scope
Pexp_letexception called Typedecl.transl_exception directly. That
Luke Maurer (@lukemaurer)Ignore DWARF-only labels in the x86 peephole optimizer
With -gdwarf-inlined-frames, DWARF range labels are inserted into Linear code before emission. The x86 peephole optimizer treated every label as a control-flow barrier, so these labels blocked optimizations such as removing the redundant cmp in:
ttebbi-janestreetInclude Merlin binaries in the compiler install
This PR is still far from being ready for review. I'm only creating it to get CI to run.
Liam Stevenson (@liam923)Include the Merlin libraries in the install
Installs merlin-lib under lib/ocaml/merlin, published via lib/ocaml/META.merlin-lib. The vendored csexp is bundled as subpackage merlin-lib.merlin_csexp (renamed so the module cannot clash with a real csexp in downstream builds), and merlin_ocaml_index is made public.
Liam Stevenson (@liam923)Interface imports no longer record the implementing unit
Stacked on #7507. Last of four PRs; the first three are #7505, #7506 and #7507.
Zesen Qian (@riaqn)Introduce Compilation_unit_intf to identify interfaces
Stacked on #7505 (second of four PRs splitting #7028; then #7507 and #7028).
Zesen Qian (@riaqn)JSIR: Catch up with Flambda changes and automate JSOO import
This PR makes changes required to get the JSIR -> js_of_ocaml into a basic state, catching up with changes in Flambda and JSOO. Notably:
Leo Lee (@smjleo)JSOO: get rid of PPXs in stdlib
The JSIR pass needs to import external/js_of_ocaml/compiler/lib/code.ml for its JSIR definition, which among other things depend on stdlib.ml. But the compiler can't build this file due to ppx-optcomp being used in several places. This PR removes them:
Leo Lee (@smjleo)Loops analysis for SSA
As per title; it implements the same algorithm
Xavier Clerc (@xclerc)Machtype checking
Adds another pass during cmm_invariants that traverses Cmm expressions and makes sure the machtypes of inputs and outputs of each operation are consistent with eachother. For now, this machtype-checking pass is toggled with a separate flag (-dcmm-(no-)check-machtypes, default enabled), but it can be folded into -dcmm-invariants when we consider the machtype …
James Rayman (@jra4)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 a small optimization not depend on debug info
The in-place add to memory optimization here accidentally depends on whether the two references to the same location have the same debug info. This PR fixes that in two commits: The first shows the issue with assembly expect tests for two functions that look like they should get quite similar assembly, but don't. The second fixes this, restoring the optimiza…
Chris Casinghino (@ccasin)Make ocaml-index tests depend on `MERLIN_TEST_OCAML_VERSION` directly
Merlin's cram tests declare their dependency on the compiler via the
Luke Maurer (@lukemaurer)