Skip to content

docs(vcr): traceability for parallel perf tracks B (clamp lowering) + C (R10 pool) (#242)#282

Merged
avrabe merged 1 commit into
mainfrom
docs/vcr-bc-traceability
Jun 6, 2026
Merged

docs(vcr): traceability for parallel perf tracks B (clamp lowering) + C (R10 pool) (#242)#282
avrabe merged 1 commit into
mainfrom
docs/vcr-bc-traceability

Conversation

@avrabe

@avrabe avrabe commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Traceability leads — parallel ROI tracks for the codegen perf work

Per the measured reframing on #209: the allocator (VCR-RA-001, track A) is the north-star but register-pool-constrained, so its measured win is modest. This files the two complementary, parallelizable levers gale's #209 decomposition surfaced:

  • VCR-SEL-002 — clamp lowering (track B): the int8 saturations [-127,127] lower to 18 IT-blocks vs native's 6 — gale's biggest single chunk. ARM SSAT doesn't apply ([-127,127] ≠ [-128,127]); the lever is a tighter Select/conditional-move lowering. Disjoint from A.
  • VCR-RA-002 — free R10 when bounds-checking is off (track C): R10 is reserved unconditionally but used only in BoundsCheckConfig::{Software,Mpu,Masking} (verified). In None mode it's a wasted reserve — a cheap +1 register (pool 9→10). Composes with A (which reads the pool from config).

Parallelism: B, C, A touch disjoint code. B/C are optimizations (bytes change), so the gate is result-identity (flight_seam 0x07FDF307) + measured delta, not byte-identity — which removes the only would-be conflict (no shared fixture re-freeze). Both proposed; verification artifacts land with the oracle-gated code.

rivet-clean (only the expected proposed-requirement WARN, no ERROR).

🤖 Generated with Claude Code

…l, C) — traceability leads (#242)

Per the measured ROI reframing (#209): the allocator (VCR-RA-001) is the
north-star but register-pool-constrained, so its win is modest. gale's #209
decomposition puts the biggest single chunk in clamp lowering (18 IT-blocks vs
native 6 — VCR-SEL-002, track B), and freeing R10 when bounds-checking is off
is a cheap +1-register pressure multiplier (VCR-RA-002, track C). B + C run in
parallel with A, disjoint code, gated by RESULT-identity (flight_seam
0x07FDF307) + measured delta, not byte-identity.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 94e91fe into main Jun 6, 2026
10 checks passed
@avrabe avrabe deleted the docs/vcr-bc-traceability branch June 6, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant