Repository activity
40458 results across all weeks
Remove unused stack slots before optional packing
This pull request tweaks the implemetation
Xavier Clerc (@xclerc)Rename `terminator.Call_no_return` to `External_call_no_return`
Trivial refactor. This is a better name for the terminator since it is used only for external calls.
James Rayman (@jra4)Rename cast constructors in Cmm
Renaming constructors such as Int_of_value to Int64_of_value disambiguates between tagged ints and int64s. This is done ahead of adding cast operations between naked ints of different widths, and cast operations for tagging/untagging ints.
James Rayman (@jra4)Rename cast constructors in Cmm
Changes int to int64 in cast names. This is preparing for when we add more int types to Cmm.
James Rayman (@jra4)Reuse allocation preparation on IRC fallback
As per title: if we switch from IRC to
Xavier Clerc (@xclerc)Run the compiler testsuite at -Oclassic and -O3
Gbury
Mark Shinwell (@mshinwell)SIMD layouts (128 bit)
Mark Shinwell (@mshinwell)SSA: Don't fuse comparisons when they shouldn't be live at the terminator
Cfg_of_ssa.fuse_comparison didn't check whether cond was live at the terminator it's being fused at, meaning if we had something like the following, v would be stale at the terminator after fuse:
yusumez-jsSegfault from an unboxed existential over `box`
[| x; y |] segfaults when the element type is an existential over 'a box declared [@@unboxed]:
KC Sivaramakrishnan (@kayceesrk)Select frame pointers, stack checks, ASan and poll insertion per invocation
One installed compiler now serves every codegen configuration of its target, selected per invocation, instead of one compiler install per configure combination. This covers the axes that default.nix exposed as build parameters: frame pointers, stack checks, AddressSanitizer and poll insertion. Multidomain stops being a build axis altogether.
Jacob Van Buren (@jvanburen)Set `Capply.returns` in flambda
This causes codegen to change, so it is vital that Apply.returns apply is correct. See parent PR for more details.
James Rayman (@jra4)Shape.Uid distinguishes interface and implementation units
Stacked on #7506. #7028 is based on this PR.
Zesen Qian (@riaqn)Sign extension no longer folded into a mask after bswap_32 (regression since ox9)
On arm64, extracting a few bits from a byte-swapped int32 sign-extends the whole word first, though the mask discards every bit the extension sets:
Thomas Gazagnaire (@samoht)Simplify CFG depth-first traversal
Similarly to https://github.com/oxcaml/oxcaml/pull/7837, we can simplify
Xavier Clerc (@xclerc)Simplify CFG dominators to a single tree
After https://github.com/oxcaml/oxcaml/pull/7836 makes dead handlers
Xavier Clerc (@xclerc)Simplify Phys_equal of a tagged boolean against a constant
[Note: this is the original approach, now superceded following feedback from @bclement-ocp ; see below]
Mark Shinwell (@mshinwell)Simplify makes the direct call in the wrapper of a function with an optional argument indirect
The wrapper made for a function with an optional argument (also for [@unboxable]) calls the inner function directly before Simplify and through the closure after it, at the default level, -O2 and -O3. So [@zero_alloc] on such a function fails with called function may allocate (indirect tailcall); with -flambda2-simplify-stubs the call stays direct and the ch…
Mark Shinwell (@mshinwell)Slambda: apply kind instantiations directly
Evaluate (kindinstantiate f [k1; ...; kn]) arg1 ... argm to a single application of the instantiation to the environment and the arguments, rather than applying the result of a partial application of it. This avoids allocating the partial application, which also hid the instantiation from inlining in classic mode.
Jack Rickard (@Skepfyr)Structured mangling: C implementation of demangling
C implementation of symbol demangling
Kevin Svetlitski (@Svetlitski)Structured mangling: fix names of compiler-generated closures
Profiling a large internal executable built with -name-mangling-scheme structured showed that about nine thousand function symbols still demangled to a bare fn, and that every functor body demangled with the functor's name doubled (Make_set.Make_set). None of these closures are anonymous in the source: they are the functions the compiler synthesizes from a d…
Kevin Svetlitski (@Svetlitski)