Repository activity
40458 results across all weeks
-flambda2-match-in-match: Variable unboxed_field_0 not expected to be free in whole-compilation-unit term
Ethan Chou (@echoumcp1)-internal-assembler -fno-PIC: "cannot generate dir32" on any unit with an exception handler
With -internal-assembler and -fno-PIC together, the compiler stops on any unit with an exception handler with Fatal error: exception Failure("cannot generate dir32"). Each option alone compiles it.
Mark Shinwell (@mshinwell)A call of an unexported helper with one argument more than its parameters is not a tail call
call step (n - 1) acc, where call f x = f x is not exported by its unit, is not a tail call in native code: the type checker infers that the result of call may be local, and closure conversion puts a region around the over-application. A loop written so ends with Stack_overflow; bytecode and OCaml 5.4.0 run it in constant stack.
Mark Shinwell (@mshinwell)A call under `Fun.id` (or `%identity`, an unboxed field or constructor) is not a tail call when the function allocates locally
Fun.id (loop (n - 1) (acc + 1)) as the last expression of a function that allocates on the local stack (here a comparison of two tuples) is not a tail call in native code; so is a call under %identity, Obj.magic, the field of an unboxed record or an unboxed constructor. Bytecode and OCaml 5.4.0 run it in constant stack.
Mark Shinwell (@mshinwell)A double stored in a float16 Bigarray is rounded twice
A double stored in a float16 Bigarray is rounded to float first, then to 16 bits, so it can be rounded the wrong way: 0x1.0020000001p+0 is stored as 1, where the nearest float16 is 0x1.004p+0.
Mark Shinwell (@mshinwell)A freshly tagged value is compared with a tagged constant instead of untagged
When a value that was just tagged (a byte or 16-bit load, a field) is compared
Thomas Gazagnaire (@samoht)A polling loop back edge runs an extra unconditional branch per iteration
In a loop whose back edge carries the poll, the hot path is: exit test
Thomas Gazagnaire (@samoht)A raise in a shared match arm is reported at the line of the first arm
Arms of a match that differ only by their place are shared in native code, so a raise in the second arm is reported at the line of the first. Bytecode reports the right line.
Mark Shinwell (@mshinwell)A recursive call of a function whose optional argument has a default that allocates locally is not a tail call
A function with an optional argument whose default allocates on the local stack (here a comparison of two tuples) does not call itself in constant stack in native code. A loop written so ends with Stack_overflow; bytecode and OCaml 5.4.0 run it in constant stack.
Mark Shinwell (@mshinwell)A test whose two arms raise the same exception is kept when the arms come from two places in the source
if strict then raise Not_found else raise Not_found is compiled to a test of strict and two copies of the raise, at every native level. Arms that are the same action are merged only when their debugging information is the same.
Mark Shinwell (@mshinwell)ARM64: fix float32 immediate exponent decoding
ARM64 float32 immediate selection decodes the exponent with a 7-bit mask and a bias of 63. Use the IEEE 754 binary32 exponent mask (0xFF) and bias (127), matching the existing -3..4 range check.
ArseniyVarlamovAVX512_BF16 intrinsics
Adds support for the avx512_bf16 extension and intrinsics. The extension flag implies avx512f and is enabled by default if detected by configure. The simdgen pipeline has been updated and a few instructions added to amd64.csv. The generated tests run only if bf16 support is detected.
Max Slater (@TheNumbat)Add -expose and -open-h flags for hidden dependencies
This change is orthogonal to #7797 (attach-cmx-path); it is stacked on that branch only for testing.
Zesen Qian (@riaqn)Add -expose and -open-h flags for hidden dependencies
Replaces #6182, which GitHub closed as merged into a stacked branch.
Zesen Qian (@riaqn)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 Arm64 frame pointers support for macOS and Linux
This is a port of https://github.com/ocaml/ocaml/pull/13500 to OxCaml with some OxCaml specific fixes (e6b6176, 25bbd66, 36e7459). It's useful when investigating the performance of OxCaml code using Instruments on a Mac.
Tim McGilchrist (@tmcgilchrist)Add SanitizerCoverage-compatible instrumentation hooks (-gated-trace-pc-guard)
Supersedes #8052 by @dpatti (whose commit is the first one here). Stacked on #8065.
Mark Shinwell (@mshinwell)Add `-frametable-sections`
Currently, the frametable is always one giant table per compilation
Luke Maurer (@lukemaurer)Add `-jump-table-sections`
On amd64, each compilation unit puts all its jump tables together in one section. This makes it impossible for the linker to drop any function with an Lswitch, even under -function-sections and --gc-sections, so long as even one such function keeps that section alive.
Luke Maurer (@lukemaurer)