Features
-
Mode solver levels and operations (merged): Adds level tracking,
generalize,copy, and alloc-mode-as-locality to the mode solver, providing the infrastructure for mode polymorphism. Stacked as #6966 over #5478–#5482. -
Box kinds (open): Introduces the
k boxkind constructor, wherek box < scannablealways holds and specific subkinds (e.g.bits64 box < value non_float) are enumerated. Box kinds are not yet linked to types. #6956 -
Addressable kinds (merged): Adds an idempotent
addressableoperator to the kind system, distinguishing kinds whose boxed form is a block (pointer-takeable) from those that are immediates. Enablesptr_ofonbits64 boxbut rejectsbits8 box. #6712 -
LTO solution files (merged + open):
-reaper-solvenow writes.ltosolfiles and unions dependency graphs from.cmrinputs;-reaper-rebuildreads them. Full solution serialisation and calling-convention threading are in progress. #6752, #6731, #6895, #6964 -
SSA empty-loop deletion (open): A
-ssa-delete-empty-loopspass uses Fourier-Motzkin entailment over affine facts to prove loop termination and side-effect-freedom, then rewrites the header exit to an unconditional jump. Off by default. #6948 -
Experimental
Eval.inject(open): Runtime value injection for metaprogramming quotes, with a%reify_approxprimitive that marshals middle-end approximations so the second compilation can drive inlining. Polymorphic values require monomorphisation annotations. #6560
Fixes
-
DWARF size and correctness (merged): A series of changes reduces
ocamlopt's DWARF from 361 MiB to ~46 MiB on macOS: assembler-local temporaries, free-depth cache keys, shared enum DIEs, compact forms, and correct file paths for inlined frames. #6915, #6916, #6945, #6882, #6877, #6517 -
CFG block-layout pass (merged): New
-cfg-block-layoutpass reorders blocks to maximise fallthrough and sink cold blocks, removing ~15% of intra-function unconditional jumps at +0.3% text size. #6918