Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Use run-length encoding for small object free lists

    This is a port of ocaml/ocaml#13616 to the OxCaml tree, which is needed to accurately account for work during sweeping (Sweeping already-free blocks should not count towards sweeping "work").

    Nick Barnes (@NickBarnes)
  2. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    VPCLMULQDQ intrinsics

    As with #8180, adds intrinsics for the VPCLMULQDQ extension. There's only two of them.

    Max Slater (@TheNumbat)
  3. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Validate rematerialized instructions and dead-code deletion

    This pull request tweaks the validator to support

    Xavier Clerc (@xclerc)
  4. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Weaken staticity for structures, not signatures

    Compilation units need .cmxs to be evaluated statically. When such a .cmx was not guaranteed via -Ix, we previously weakened the signature of such a unit when loading a .cmi. This is unsound, as it meant that the signature enforced a weaker requirement on the implementation.

    Ryan Tjoa (@rtjoa)
  5. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With -dflambda-heavy-invariants, "Cannot rebind" on a match on a variant

    With -dflambda-heavy-invariants at -O2 or -O3 (the default join), Simplify stops on an ordinary match on a variant with constant and non-constant constructors: "Cannot rebind prim/... in environment".

    Mark Shinwell (@mshinwell)
  6. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With -dflambda-heavy-invariants, "New equation ... has unbound local names" on a recursive function

    With -dflambda-heavy-invariants, Simplify stops on let rec f (Node l) = List.iter (fun x -> List.iter (fun y -> f y) x) l with "New equation ... has unbound local names".

    Mark Shinwell (@mshinwell)
  7. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With -flambda2-expert-cmm-safe-subst, a read is still moved past a call when a branch follows the call

    -flambda2-expert-cmm-safe-subst keeps a delayed read before a later call, but not when a test, a join, an exception handler or a loop stands between the call and the use. Here the read of a string lent by Bytes.unsafe_to_string is done after a call that writes the bytes.

    Mark Shinwell (@mshinwell)
  8. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With -fno-avx, the compiler stops on x *. Array.unsafe_get a i

    With -fno-avx (also -fno-sse3, -fno-ssse3, -fno-sse41, -fno-sse42) the compiler stops on x *. Array.unsafe_get a i with "Exception whilst emitting instruction" and Invalid_argument("index out of bounds").

    Mark Shinwell (@mshinwell)
  9. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With `-X flambda2-meet-strategy=bfs`, `snd p` of a pair built in two branches gives the value of one branch

    At -O2 and -O3 with -X flambda2-meet-strategy=bfs, f is simplified to a function that returns 1 whatever c is, so f false 5 is 1 instead of 5. The strategies dfs (the default) and hybrid are right.

    Mark Shinwell (@mshinwell)
  10. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With `-flambda2-join-algorithm n-way`, Simplify deletes an arm of a match that is taken

    At -O2 and -O3 with -flambda2-join-algorithm n-way (or with -flambda2-match-in-match), the arm for Y2 of the last match on d is deleted and f false Y2 true 5 is 3035 instead of 3055. Other programs abort with Invalid code: unreachable switch case or end with a segmentation fault.

    Mark Shinwell (@mshinwell)
  11. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With `-flambda2-match-in-match`, a constant lifted from the toplevel code of a unit is left unwritten

    At -O2 and -O3 with -flambda2-match-in-match this program prints result 0 instead of result 2: the block of After delay_s is a lifted constant whose field is never written. Whether it shows depends on the name of the file (keep test.ml); other programs end with a segmentation fault or stop the compiler. Issues #7763 and #7977 show the same fault with other p…

    Mark Shinwell (@mshinwell)
  12. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With `-flambda2-match-in-match`, a region begun in a loop is never ended

    At -O2 and -O3 with -flambda2-match-in-match, the region of g, inlined into the loop, is begun in every turn and never ended, so the local stack grows until the program stops with Local allocation stack overflow - out of memory. With a try or an exclave_ in the region, the lost end also gives wrong values.

    Mark Shinwell (@mshinwell)
  13. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    With the n-way join, -flambda2-debug-concrete-types-only-on-canonicals stops the compiler

    With -flambda2-join-algorithm n-way and -flambda2-debug-concrete-types-only-on-canonicals at -O2 or -O3, Simplify stops on a function that matches a variant twice around a loop: "Trying to add equation giving concrete type on ... which is not canonical". Whether it stops depends on the name of the unit (prog.ml stops).

    Mark Shinwell (@mshinwell)
  14. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Wrap overlong lines in runtime/

    For greater compatibility with upstream.

    Nick Barnes (@NickBarnes)
  15. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    [@@@ocaml.flambda_oclassic] stays in force for the next units of the same command

    [@@@ocaml.flambda_oclassic] in one unit stays in force for the units compiled after it by the same command. ocamlopt -c classic.ml test.ml compiles test.ml without Simplify and its [@zero_alloc] check fails; ocamlopt -c test.ml succeeds.

    Mark Shinwell (@mshinwell)
  16. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    [@inlined] on a function with an optional argument is not honoured and gets no warning

    (f [@inlined]) ~x:1 y, for an exported f with an optional argument with a default, inlines only the wrapper that fills in the default; the call of the function proper stays, with no warning 55. At -O2 or with -stubs-forward-inlining it is inlined.

    Mark Shinwell (@mshinwell)
  17. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    [@poll error] is not checked unless -enable-poll-insertion is given

    [@poll error] is not checked unless -enable-poll-insertion is given: let[@poll error] f x = (x, x + 1) is accepted with no diagnostic. With the flag it is refused, since an allocation is a polling point.

    Mark Shinwell (@mshinwell)
  18. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    [@tailcall] on a local function or a method call is not checked

    [@tailcall] on a call of a local function that is not a tail call (1 + (g [@tailcall]) x) gets no warning 51, because the function has been made a continuation before the check; ocamlc -g gives the warning. [@tailcall] on a method call is dropped without a word.

    Mark Shinwell (@mshinwell)
  19. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    [Experiment] oxfuzzer: generate C++ code

    This pull request is a mere experiment,

    Xavier Clerc (@xclerc)
  20. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    [WIP] Peephole rewrites for arm64

    This needs a bit of work (and 22ed65f9063d1571582b51b437669f1da363345f is

    Xavier Clerc (@xclerc)