test(vcr-ra): shadow allocator vs recovery ladder — spurious vs genuine spill (#242)#479
Merged
Conversation
…ne spill (#242) Measure-only (SYNTH_SHADOW_ALLOC, byte-identical) — answers the VCR-RA acceptance question empirically: do the recovery ladder's spills survive under a verified (virtual-register) allocator? Running the graph-colouring shadow allocator on the ladder-firing functions splits them: control_step.wasm spill -> shadow peak 8 <= 9 SPURIOUS (VCR-RA subsumes) high_pressure_i32 spill -> shadow peak 10 > 9 GENUINE (VCR-RA spills too) promotion_exhaustion_fallback spill -> shadow peak 10 > 9 GENUINE high_pressure_i64 / msgq_put -> shadow declines (i64/calls — model scope gap) Key result: control_step — a SHIPPED frozen fixture — spills only as a physical-register artifact (its 8 live values fit the 9-wide pool once allocated virtually), exactly the case a verified allocator removes. The genuine floor is the peak-10 functions, where VCR-RA's bar is "spill no worse," not "no spill." Adds the measured comparison to the recovery-ladder map + the CI test shadow_alloc_spurious_vs_genuine_spill_242 (pins the ≤9 / >9 threshold, not exact peaks, so codegen drift won't flap it). No production code changed; frozen gate green. Refs #242 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Measure-only (
SYNTH_SHADOW_ALLOC, byte-identical — frozen gate green). Answers the VCR-RA acceptance question empirically: do the recovery ladder's spills survive under a verified (virtual-register) allocator?Running the graph-colouring shadow allocator (the VCR-RA prototype) on the ladder-firing functions splits them:
control_step.wasmhigh_pressure_i32promotion_exhaustion_fallbackhigh_pressure_i64,msgq_put_359Key result:
control_step— a shipped frozen fixture (0x00210A55) — spills only as a physical-register artifact (its 8 live values fit the 9-wide pool once allocated virtually), exactly the case a verified allocator removes. The genuine floor is the peak-10 functions, where VCR-RA's bar is "spill no worse," not "no spill." The i64/call decline is the shadow model's TODO, not an allocation result.Adds the measured comparison to
register_exhaustion_recovery_ladder.md+ the CI testshadow_alloc_spurious_vs_genuine_spill_242(pins the ≤9 / >9 threshold, not exact peaks). No production code changed.Refs #242
🤖 Generated with Claude Code