Repository navigation
perf(comp): Array.sets at one index plus constants write through one pointer - #41
Closed
nicolas-abril wants to merge 130 commits into
Closed
nicolas-abril wants to merge 130 commits into
nicolas-abril wants to merge 130 commits into
Conversation
… a borrowed part of its argument An Array.get of a boxed element reads the slot in place when its consumer only lends the element; a write, a free or a hand-on of the array while the element is live makes the read copy, as before. An Array.set that stores the value read from the same slot moves it. A def whose every result is a part of one borrowed parameter answers a borrowed box. hashmap: 2.41 s to 1.17 s on one thread. comp.ts is 68,402 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…y without the index masks An Array index wraps, so every access masks it by the block's size, and the mask keeps clang from reading and writing a loop's cells side by side. A spin is now emitted twice when the index of an access to a fixed array has a bound that can be computed before the loop: the copy without the masks runs when every bound is under its array's size, the copy as before otherwise. The bound is an interval over the operators of U32 and Nat, a Nat countdown, a U32 counter and the conversions. histogram: 1.572 s to 1.280 s on one thread. comp.ts is 69,018 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…t walks A list of words (a String, a List<U32>, a chain of keys) was dropped through term_drop's general path: each node joined the cur chain, its fields were stepped one at a time, and it was freed on the way out. Such a node now goes at once: when every field but the last is trivial, the node is freed and the walk goes on with the last field. Order of frees is unchanged, and a shared cell met on the way goes through the count test at the top of the loop as before. hashmap, one thread, GPU off: 18.50G instructions to 16.71G on main; on top of bendlang#2135, 8.09G to 6.22G. tests/rfc/drop_list.bend spells the shapes around the new path. Co-Authored-By: Claude Fable 5.2 <[email protected]>
… loop that runs to the array's last cell bendlang#2137 emits a spin a second time without the index masks when each index has a bound fixed for the loop. Two shapes kept their masks: - An access in a helper def the loop calls. The analysis and the mask-free copy now emit a helper's body in place of the call (a flat def that takes an Array and does not call itself, 32 a loop at most), so its accesses get the loop's checks. An array in a record or a pair is followed word by word, and a helper's result is the array it took only when every arm answers it. - A loop over n cells from i: its counter was bounded by i0 + n0, one past the last index read, so a loop over a whole array failed its check. Under an arm that took k successors off the countdown the bound is i0 + c * (n0 - k). An operator with an unbounded operand gives no bound, so a check that cannot hold asks for no copy, and a spin's size class is read off its masked copy alone, as on main. Instructions retired, one thread, against bendlang#2137: editdist 49.74G to 36.88G, histogram 32.94G to 30.80G, terrain 43.83G to 41.15G; the other benches the same. comp.ts is 70,103 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…nlined into the loop clang inlines a static function with one caller whatever its size, but one with several callers only under its size threshold, so a large helper called from a hot loop and from elsewhere stays a call per iteration. emit_spin now marks such a call with a statement attribute (HOT, [[clang::always_inline]] on the host with clang 17+, nothing on the device): the caller is in a tail-call loop, the callee is flat, does not loop, has more than one call site and is over HOT_SIZE (1024) terms with its flat callees included. gameoflife, one thread: 172.4G to 145.7G instructions retired. The other 16 benches compile to the same object code. Co-Authored-By: Claude Fable 5.2 <[email protected]>
… them has one target A non-tail call pushes a frame that ends in its continuation's id, and the callee returns by jumping through the segment table on that id. When two arms of a def continue the same way after their calls, each arm had its own copy of the continuation, so the return had two targets and which one depended on the arm that made the call, a subtree ago. Continuation segments whose text is the same but for the names of their locals are now emitted once (to a fixpoint, since fusing two may make the ones that push them alike). A fused segment is compiled for the device if any of its copies was. queens: 22.3G to 20.1G cycles on one thread, same instructions. comp.ts is 66,251 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…urns' calls side by side A loop over a Nat that calls, each turn, a second countdown loop over words (mandelbrot's 64-pixel chunk runs 51 steps a pixel) is a chain of dependent steps: the core waits on each pixel's multiply before the next. The host now enters the calls of the next sixteen turns at once and steps them a round at a time, a loop over lanes that clang vectorises; each turn then reads its result. The outer loop must leave only at zero and pass the call words fixed for the loop but the predecessor; the inner loop must take and answer words, leave only at zero and count the same in every lane (else each lane runs alone). A count clang knows, or one under eight, leaves the loop as it was. mandelbrot: 19.76G to 11.50G cycles on one thread (1.72x); gameoflife: 31.81G to 22.18G (1.43x). comp.ts is 68,071 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…o bound stays none A Nat that is fixed for a loop and matched in it (`case 1n+p`) gave p the bound of the whole word, so `a[x - from_nat(p)]` could pass its check one short and write past the array: ix_word's `same` branch ignored the successors the match took off. The branch is bendlang#2137's; the word-by-word roles of the commit before made it reachable. The successors now come off the bounds of any role. Three more, found reading every place a bound is carried: - A countdown past 2^32 saturates to 2^32 - 1, which stands for no bound; taking a successor off it made it a bound again (also in bendlang#2137). It stays 2^32 - 1. - The same under the countdown floor of the commit before: a counter's steps have no bound when the countdown's entry value has none. - An operator was known by its name alone, so a file's own `U32.is_far` had the bound of a comparison (also in bendlang#2137). An operator is now Base's def of that name. tests/run/array_index_carry.bend runs each shape in range and out of it; bendlang#2137 prints two of its 29 lines wrong and the commit before four. The benches' instruction counts are unchanged. comp.ts is 70,235 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ator is Base's def Two bounds that let an index out of range into the copy without masks, so it wrote outside the array where main wraps: - A countdown past 2^32 saturates to 2^32 - 1, which stands for no bound; taking a successor off it made it a bound again. With n = 2^32 + 5 the index (n - 1) - 4294967290 is 10 and the bound said 4. It stays 2^32 - 1. - An operator was known by its name alone, so a file's own `U32.is_far` had a comparison's bound of [0, 1]. An operator is now Base's def of that name. tests/run/array_index_bound.bend gets both shapes, in range and out of it, with counts the compiler cannot see; the commit before prints two of the five new lines wrong. bfs and terrain change only in the bound temporaries (same instruction counts); the other 15 benches emit the same C. comp.ts is 69,093 ttok. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…t gains their cases Co-Authored-By: Claude Fable 5.2 <[email protected]>
… tests its sign heap_free compared the lane's word count with KEEP_WORDS, a static the host sets at start, so every free loaded it and compared twice (six instructions on arm64). The count now starts at ALC_NONE, which is -KEEP_WORDS on the host and 0 on the device, and the hand-off test is the sign of the count after the add. heap_hand and heap_alloc_miss set the count from ALC_NONE; corpus_setup gives every lane's row its start. The chains, the generations and the order of every allocation are unchanged. tests/io/heap_large_reuse.c builds its private lane rows with the new start. tests/run/heap_generations.bend frees several generations of three classes on one lane and across forked lanes. Co-Authored-By: Claude Fable 5.2 <[email protected]>
emit_unfold took a call whose constant arguments decide its matches, but only into a flat def: its residue is an expression. A call in statement position (a tail call, or the one a let binds, where ANF puts every call into a def that is not flat) now unfolds into such a def too. Its residue is a statement, so ANF cuts the calls it makes and they unfold where they stand. There, and only there: a flat argument folds to its end; an op on constants is its constant (a U32 or a Bool, by the op's JS, as a match table's cells are); a def with no match of its own unfolds if its body's tail call does, and a residue's tail call unfolds in place; an argument that calls a def not flat is bound first, so no later one is held across it, and is typed by the arguments before it. A call with no constant argument is not tried. A residue that forks or bangs is refused, and so is one that keeps a call leading back to the def unfolded (the constants must carry a recursion to its end, or it would only be peeled). A try that fails gives its fuel back, and a def whose unfold ran out of fuel is not tried again in that unit. lexer's gen walks a literal template: its frames, its returns and its slot dispatch are gone from a line (53.41G to 39.78G instructions, 8.44G to 6.51G cycles). symreg's gen(5n, h) builds its candidate without a frame. The other 15 benches emit the same C. tests/run/unfold_statements.bend and tests/run/unfold_generic.bend. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Base spells them Pair.fst and Pair.snd of Nat.divmod. Nat.divmod was already native, but the generic Pair.fst / Pair.snd then dropped the unused half, and a drop of a word of unknown type is a test (term_sink) that clang cannot remove when it cannot bound the word: a remainder computed for nothing, two compares and a branch per division. Both names are now C operations, the two halves of Nat.divmod's own text. The JS lane and the interpreter still run Base's defs. Co-Authored-By: Claude Fable 5.2 <[email protected]>
nat_mul tested for overflow with a 64-bit division on every call (a > NAT_IMM / b). When both operands are under 2^32 the 64-bit product is exact, so nat_chk alone holds it to 2^48-1; the division is kept for an operand of 2^32 or more, where the product can wrap. Co-Authored-By: Claude Fable 5.2 <[email protected]>
A segment that reaches no fork tested seq before each frame it pushed and before each call, and carried the task path it never takes: FID_ENTER and FID_EXIT set seq for a fork-free task, and a forking segment hands a fork-free callee to a task of its own. WL_SEQ(F) is seq, or on the host true for a fork-free segment, so clang drops the test, the task path and the frame the path's calls forced on every entry. The one such segment that ran with seq clear is a closure body entered through a Clo~apply that may fork; it now keeps its frames on the stack above the task's frame, as a fork-free task does. symreg -15.8% instructions, queens -6.3%, lexer -2.8% (one thread, M4). Co-Authored-By: Claude Fable 5.2 <[email protected]>
… a loop Nat.add(e, f(..)) or 1n+f(..) in tail position was a non-tail call: a frame on the heap stack and an indirect return per step, where C carries the sum in a register (String.length, List.length, any count or digit sum written the plain way). Such a call no longer keeps its def from being flat: the def's spin holds the sum in acc, adds the other operand at the call and jumps to itself, and adds acc to whatever it answers. Nats only grow under add, so a partial sum in either order is at most the whole one and both orders stop at 2^48-1 together. C lane only. Co-Authored-By: Claude Fable 5.2 <[email protected]>
A non-tail call pushes a frame and jumps to its callee; when the callee's match takes an arm that returns at once, the callee pops the frame's id and jumps back through the segment table. In a tree recursion that is at least half of the calls. The call now carries the callee's returning arms: after the frame is pushed and the arguments are in the registers, an arm that neither calls nor jumps runs in place and jumps straight to the continuation the frame names. Any other arm falls through to the call as before. segs_base copies the arms from the callee's emitted entry segment, so they run the code the callee would have run on the same registers. Only for a callee that calls itself twice on one path, on the host, where the frame is on the stack. On top of the fork-free sequential path, one thread, M4: symreg -4.5% instructions and 12.43G to 8.18G cycles (medians of a 16-position sweep; its C twin runs 9.01G); fib(42) 2.74G to 2.03G cycles, tak 9.75G to 6.11G. Co-Authored-By: Claude Fable 5.2 <[email protected]>
A def that calls itself may make, on every turn, a call that reads only parameters each self call passes back as they are (binarytrees' go builds and checks the same tree 1,200 times). def_fix, run at the end of file_book on the checked terms, takes the largest such call that yields words and runs a def that loops or is not flat: the arm that holds it binds it at the head of its statement and goes on in k~fix, a copy of the def that takes the value as a last parameter and reads it where the call was. The def keeps its body, so a loop that never reaches that arm never makes the call, and one that reaches it makes it there. Not taken: a call under a lambda, in a partial application, in an unused let or an erased argument, inside a call the emitter unfolds, with a bang or a foreign def in it; a result that is a box; and, in an @unsafe def, a call that reads a parameter holding an Array or anything but datatypes (a write through one handle shows through the others). binarytrees (koru osprey kernel), one thread: 1,639M instructions and 71.9 ms to 13.6M and 1.2 ms. Of 980 programs under bench/runtime, demos, tests and the koru kernels, 6 emit different C: the two binarytrees ports and four tests. comp.ts is 68,310 ttok (cap 66,000). Co-Authored-By: Claude Fable 5.2 <[email protected]>
A def that answers a Nat or a U32 and whose every call to itself, past its tail calls, is an operand of a tail add goes on in d~acc, a second def that takes the sum so far as its first parameter. The other operands join the sum, each call takes it in turn and answers it grown, and the last call is a tail call, so one call under the add is a loop and two or more keep every call but the last. The add may be spelled with nested adds, successors on either side, or a call bound by a let that is used once. d calls d~acc with 0. This replaces the loop-local sum of the previous commit (acc_of and its four emitter sites) with one rewrite on the checked terms in file_book, C lane only. Left as they are: F32, a def in a tail cycle with another def, a call behind !, a fork's calls, and a def with a call to itself anywhere else. tests/io/stack_fault_trap.bend xors the result of its self-call before the adds, so the recursion it needs to fault the stack stays one. tests/run/nat_sum_loop.bend asks for twenty thousand steps, which the JS lanes hold. Co-Authored-By: Claude Fable 5.2 <[email protected]>
On the C lane a tail-call cycle across defs was never flat: each def was a segment, a call into it from an expression a frame and a return, and its callers were not flat either. A cycle is now flat when one of its defs is a head (every other def is named once in the cycle), no def of it calls another in an argument, and their other callees are flat. The head's spin holds each other def's body in place of its call, by the path a tail call to a def with one call site already takes, and a call back to the head is the spin's jump. A def that is no head gets a spin that calls the head's. Base's String.contains, String.starts_with, String.eq, U32.show, Nat.show, U32.read, Nat.read, U32.hex, String.trim_start and Map.diff are such cycles; the JS lane already ran them as one loop. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…s too seg_base walks the callee's entry as blocks: a test below the entry chain is copied with its returning arms when the lines before it only name words (the callee runs them again when no arm answers). An arm that drops a subterm stays in the callee: the call to term_drop gave the segment it was copied to a C frame on every entry. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Where a call gets its callee's returning arms, the store of the continuation's id moves below them: an arm that answers jumps to the continuation with the frame as a return would leave it. Not in the callee's own entry, where the call closes a loop that clang then vectorises (tak ran 5.7% more cycles), and a call that gets no arms is emitted as before. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…division Co-Authored-By: Claude Fable 5.2 <[email protected]>
…t only past 2^32 Co-Authored-By: Claude Fable 5.2 <[email protected]>
…es as it walks Co-Authored-By: Claude Fable 5.2 <[email protected]>
…'s count Co-Authored-By: Claude Fable 5.2 <[email protected]>
…led in a loop is force-inlined Co-Authored-By: Claude Fable 5.2 <[email protected]>
…e segment Co-Authored-By: Claude Fable 5.2 <[email protected]>
…her in a cycle run as one loop Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ies its sum in a parameter Conflict in bend2/comp.ts after loop_of: bendlang#2188 adds loop_head and bendlang#2175 adds acc_def at the same place. Both kept, loop_head first. Co-Authored-By: Claude Fable 5.2 <[email protected]>
, bendlang#2224-bendlang#2226, bendlang#2231, bendlang#2285, bendlang#2286, bendlang#2288 and others) One conflict, in emit_unfold: bendlang#2288 annotates an unfolded call's lets with the argument types instantiated by the earlier arguments; bendlang#2162's deep unfold keeps its arguments unannotated there and annotates them the same way after folding (its type walk renamed D, beside bendlang#2288's T). Both kept. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s frame push stays at the call on the device Co-Authored-By: Claude Opus 5.5 <[email protected]>
…call's frame is pushed at the call Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s frame push stays at the call on the device Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s frame push stays at the call on the device Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s frame push stays at the call on the device Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ain 3d5bf43; bendlang#2177's frame push stays at the call on the device) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Three conflicts with bendlang#2227, all kept both ways: emit_fork's constructor hole (a single call; no fork) beside the lazy two-call fork note; the Dst~put and Fk~fut entries; the WL_DEST and WL_FK* macros. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…o a rebuild reads Metal's shader cache A pipeline compiled straight into a binary archive is never stored in Metal's shader cache: every --gpu-build of an unchanged program paid the whole backend compile (0.13-0.8 s a bench), unless the same pipeline had once been made without an archive. Making the pipeline first stores it, and the archive's add then reads it from the cache. A cold build costs the same (symreg 0.78 s, bfs 0.48 s either way); a warm one takes 0.04 s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rame with 4 notes above it At 16 threads on 10 cores (the perf gate's PAR-CPU), tree-bitonic took 1.63 s against 1.16 before lazy forks: past-claim threads spun and yielded (980k sched_yield, 3.6 s sys) on cores the remaining claims needed, and split 260k frames near the top of their stacks, 177k of them stolen and waited on. A thread past its claims now hunts only while busy threads and hunters are fewer than the cores (fk_busy), and fk_poll splits the oldest frame only with FK_DEEP = 4 notes above it. tree-bitonic, wall s median of 5 (before lazy forks / this PR / now): 16 thr 1.157 / 1.632 / 1.250; 10 thr 1.187 / 1.257 / 1.239. The unbalanced micro keeps its gain: 16 thr 1.012 / 0.855 / 0.850, 10 thr 1.028 / 0.851 / 0.859. nbody RSS at 16 thr 2.36 / 3.18 / 2.97 MB. The lazy_split tests and fork_exit_turns print right at 1, 2, 4, 10 and 16 threads (3 runs each); the 51 forking tests print right with 0 live words (-DBEND_POISON) at 1, 8 and 16 threads. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tems, so the interpreter lane passes in time clo_elim's main returned a String, which the checker's normal form prints with F32.to_u32(2.5) stuck (Base's F32 axioms do not reduce there); an IO main runs through io_run in every lane. clo_elim_generic coded 5,000 items into 4,096-code tables: 84 s interpreted, past the gate's cap. Its table is now full at code 290 (still cleared once by 60 items) and it takes 2 s. C, JS and the interpreter print the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… does not normalize 60 rounds A main of type U32 is printed from the checker's normal form, which went past the gate's 4 GB and 30 s on these 60 rounds; main now prints run() through IO.print, which every lane runs as before (the C build forks the same: run() is the old main). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lane does not normalize them A main of type U32 is printed from the checker's normal form: each of the four took over 100 s there (past the gate's 30 s, some past its 4 GB). main now prints run() (the old main) through IO.print: the interpreter answers in under a second, and C (1, 2, 4, 10 and 16 threads, 3 runs) and JS print the same as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The probe (rets: a def whose every result is a part of its borrowed box parameter) emitted every unit, a third emit of the book: c_units went from two passes to three. A unit can be in rets only if its def is live with a box result and a box parameter; the probe now skips the rest. Emit time over the 17 runtime benches 1.761 s to 1.680 here (2.171 to 2.050 on opt/integration 09d002f); the C is the same up to the order of its definitions, and the native lane's 1,123 tests keep every status on integration. Co-Authored-By: Claude Opus 5.5 <[email protected]>
clang calls a spin whose body holds a loop, or calls one, when the spin is big or has several sites: tar's lazy parse called its chain walk, lookahead and table inserts, passing 28 words a call, half of them on the stack. HOT now also marks a call, in a loop or in a def a loop calls, to a spin that loops or calls one; not one that does F32 math, which SLP misjudges inlined (nbody 1.12x the cycles with it). tar -czf, Silesia, one thread: 53.6G -> 32.7G instructions, 12.9G -> 9.4G cycles; the same output. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pointer Each Array.set masks its index by the array's size, and (p + 1) & m is not (p & m) + 1, so clang cannot see eight stores at p..p+7 as one block. Array.sets nested on one array of one-word cells, of variables or constants, at one variable plus constants (or constants) at most 31 apart, now check once that the lowest index masked plus 31 is below the size and then store through one pointer, unmasked; past the end they store as before. clang merges the run into wide stores. tar -tzf (gralha-deflate's inflate copy written as eight reads, then eight such writes), Silesia, one thread: 4.53G -> 3.86G instructions, 1.208G -> 1.181G cycles; -xzf 4.71G -> 4.04G instructions, 1.301G -> 1.276G cycles. No test or suite program had such a run: their C is the same; the suite's 73 programs, geomean instructions 1.001. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
Ported onto main together with related PRs as #61. |
nicolas-abril
added a commit
that referenced
this pull request
Dec 1, 2026
…33, #34, #36, #39, #44, #61-#68): record their heads Each is a port onto main of integration's own branch, its content already here (integration keeps the original commits; the ports add type fixes, line wraps, moved pieces and #68's book_passes, applied in the previous commit). Groups: #61 (#9 #11 #15 #32 #41 #42), #62 (#26 #56), #63 (#48 #50 and compile-time), #64 (#19 #20 #45), #67 (#55 #58), #68 (#54); par-defer (#43) is now part of #34, lazy-startup's parts are in #16 and #34. This merge records their heads (-s ours: no content change). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Array.setmasks its index by the array's size on every store, and(p + 1) & mis not(p & m) + 1, so clang can't treat stores atp .. p+7as one block and keeps them as single masked stores.This adds one case to
emit_intr. A chain of nestedArray.setcalls qualifies when:The emitted code checks once that
(lowest index & mask) + 31 < size, then stores through one pointer with no masks; otherwise it stores exactly as before. clang turns the pointer path into wide stores.Effect
tar (gralha-deflate's inflate copy written as eight reads, then eight such writes), Silesia on one thread:
-tzf)-xzf)Tests and suite: no existing test or suite program contains such a chain. Their generated C is identical apart from the new
blk_sizedefine, and the suite's 73 programs give geomean instructions 1.001, which is noise.Tests: new
tests/run/array_set_run.bendcovers:It passes on the interpreter, C and JS lanes, with the C slow path forced as well. The cluster gate couldn't finish: one shard's SSH mux fails locally with
mm_send_fd: sendmsg(0): Message too long. Instead, every test's C was compared between opt/integration and this branch; onlyarray_split_joinand the new test differ, and both pass on all lanes.Tokens: comp.ts +738 ttok (100,696 → 101,434 on opt/integration; main is at 65,980 against its 66k cap).
Limits: loads aren't merged. A chain of
Array.get_uncheckedcrosses definitions (each pair is destructured in its own def), and an unchecked index ofx + cmay legally wrap, so it can't be read asxpluscin 64 bits. The deflate copy gets its wide loads by masking its source index to 30 bits, which lets clang prove thats + jdoesn't wrap.🤖 Generated with Claude Code