Repository activity
40458 results across all weeks
No compile-time data for modules in recursive definitions
Makes recursive modules appear dynamic as translation can lose track of their compile-time halves.
Jakub Bachurski (@jbachurski)Or-patterns over unboxed records: compiler stops with "Unbound static exception", or the match takes the wrong case
A match with an or-pattern made of unboxed record patterns is compiled wrongly, because lub in typing/parmatch.ml has no case for them. Two behaviours have been observed, each with no warning from the type checker:
Mark Shinwell (@mshinwell)Out_of_memory cannot be caught for Array.make or Bytes.create
Array.make or Bytes.create of 2^40 elements ends the program with Fatal error: Out of memory in place of raising Out_of_memory, in native code and bytecode. OCaml 5.4.0 raises, and stdlib.mli documents the exception for array creation.
Mark Shinwell (@mshinwell)Polymorphic equality on float32 nan returns true
Polymorphic = on two boxed float32 nans returns true; <>, <, <=, > and >= also give the opposite of the IEEE answers. With the type known at the comparison the answers are right, so a result can change with inlining.
Mark Shinwell (@mshinwell)Post-dominators computation for SSA
As per title; it implements the same algorithm
Xavier Clerc (@xclerc)Prevent shrink wrapping past incoming stack accesses
As per title; this pull request essentially
Xavier Clerc (@xclerc)Propagate debuginfo to branches and their arms in Cfg
Stacked on #8064.
Mark Shinwell (@mshinwell)Question: `let r = f x in r` is a tail call or not depending on whether the compiler itself allocates on the local stack
This is a question about the intended semantics, not a clear bug: the behaviour agrees with the documentation, but depends on something the user cannot see.
Mark Shinwell (@mshinwell)Read of a mutable field inside a try is done after a later call that raises
Inside a try, r := q.m followed by a call that changes q.m and raises leaves the new value of q.m in r: the read is moved after the call. The same happens with a reference or an array element in place of the field, and with a let mutable variable in place of the reference.
Mark Shinwell (@mshinwell)Read of a string from Bytes.unsafe_to_string is moved after a later write to the bytes
let c = String.get (Bytes.unsafe_to_string b) 0 in Bytes.set b 0 'z'; c returns 'z': the read of the string is done after the write, in a use that the documentation of Bytes.unsafe_to_string allows. With -flambda2-expert-cmm-safe-subst the read stays in place when the write is a call, not when it is an inline store as here.
Mark Shinwell (@mshinwell)Reaper: run a flat datalog schedule under -reaper-solve
This PR changes the fixpoint iteration schedule when compiling with link-time optimizations. Instead of a two tier schedule, we use a schedule.
Simon Spies (@spiessimon)Record action traces
This PR adds the Action_trace module to the compiler. This module allows for writing data that dune can read and then record in a trace.json file. This is useful for logging metrics and performance numbers.
Liam Stevenson (@liam923)Record whether arguments are solely responsible for allocation in `.cmx` summaries
Extend [@zero_alloc] summaries to include whether all possible allocations within a function's body come from indirect calls to an argument to that function (e.g. List.iter).
Will Sturgeon (@wrsturgeon)Refactor ARM64 architecture extensions
Adds the following
yusumez-jsRefactor `Typedtree.constant` to use the correct payload types
See the diff in typedtree.mli for the core of the change. The rest of the diff is a mechanical refactor.
James Rayman (@jra4)Remove Target_system.is_(32|64)_bit
Confusingly, these check for the word size of the build host, instead of the compilation target. There are places that check for this (for example, shift folding) that is incorrect on JSIR as a result. We should use Target_system.Machine_width for these uses instead.
Leo Lee (@smjleo)Remove default parameters from tests and `-experimental-optimizations` (backend)
(As per title; these options have been the default for some time.)
Xavier Clerc (@xclerc)Remove dot-merlin-reader
At the moment, Merlin loads its config by doing approximately:
Liam Stevenson (@liam923)Remove duplicate inlined frames in debuginfo introduced by Flambda
Fix two cases (and leave on as a CR) where Flambda 2 Simplify adds the frames of the current inlining context to debuginfo a second time.
yusumez-jsRemove trap-handler entry-point mode from CFG dataflow
Similarly to https://github.com/oxcaml/oxcaml/pull/7837 and https://github.com/oxcaml/oxcaml/pull/7839,
Xavier Clerc (@xclerc)