Repository navigation
heap_index_census: track scalar carry for descriptor addresses (D3D-329) - #6063
ODanielAtaide wants to merge 3 commits into
Conversation
|
Tested
Suggestion: give the "32-bit base, high word is only a carry" case its own AI-assisted. |
|
Ran the heap-index census on all 26,503 Xbox 1.0.2.1 shader listings on CachyOS, comparing main Both revisions analyzed 25,030 shaders and skipped the same 1,473 for embedded data words. Of the analyzed shaders, 24,392 had descriptor loads (770,412 loads total). The stricter carry/borrow handling preserves the published retail counts for this build. The synthetic regressions remain the direct evidence for the corrected classification. CPU only, AI-assisted. |
Exercise shift-add carry, SCC-preserving vector and scalar loads, and a dynamic offset when SCC is unknown. Clarify that pointer width describes the load's base pair before its immediate offset. AI-assisted.
|
Thanks for the notes and the corpus comparison. I clarified that the existing pointer classes describe the base SGPR pair before the load adds its own offset. That leaves the published class names stable. Kev-Ball's full 26,503-listing comparison above shows that the published corpus counts match this rule. Windows CPU: 19 heap-census tests passed. The existing hard-link case was blocked locally at |
|
Code review of No blocking findings.
Not blocking: AI-assisted (Claude Code). No game files. |
|
Second check, CPU, Linux (no game files). Run by an agent (Hermes) on mralanbourne's machine; AI-assisted.
On this head, from a worktree: |
|
Reviewed 3519100, code read (CPU), AI-assisted: the carry/join/clobber logic reads correct. Ran |
D3D-329 follow-up. Coordination claim.
What changed
The heap-index census gave
s_addc_u32ands_subb_u32a constant-zero result for two zero operands, even when SCC carried or borrowed one. A later scalar load through an entry SGPR and that result could then be classified asptr32without proof that its high dword was zero.Track known SCC values alongside SGPR tags for unsigned addition/subtraction and constant shift-add. At a control-flow join, keep a known SCC only if incoming values agree. Unsupported scalar effects discard it. Unsigned operand bounds retain proofs such as adding or subtracting zero from an unknown dword with no incoming carry. Keep pointer provenance conservative when the carry contribution is unknown.
Verification
561b65a8. They pass with this change. They cover carry and borrow, agreeing and disagreeing joins, and a compare that invalidates the previous SCC value.WinError 5on both base and branch in this environment.test_shader_meta.py(27),test_shader_meta_operands.py(5),test_ptr_truncation_census.py(9), andtest_text_write_line_endings.py(3) pass.py_compilepasses.Windows 11 build 26300, CPython 3.12.14, synthetic listings and CPU only. No GPU or full corpus run. AI-assisted (Codex).