Skip to content

Recompiler: prune unreachable direct-DXIL module values - #68

Draft
bmjask wants to merge 1 commit into
stack/064-precompile-runtime-variantsfrom
stack/065-prune-dxil-values
Draft

bmjask wants to merge 1 commit into
stack/064-precompile-runtime-variantsfrom
stack/065-prune-dxil-values

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #67.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates recompiler: prune unreachable direct-dxil module values as one reviewable step in the redesign.

What is in it

  • 4a2e8cee is the cleaned-stack form of integrated commit 5ad6a1a9.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

Compute transitive liveness for globals, declarations, and module constants from reachable instructions and metadata. Trace only live global initializers and aggregate elements, then compact the constant block through a stable old-to-new value map.

This removes dead constants and prevents an unreachable aggregate from retaining otherwise-unused internal symbols while preserving idempotent serialization and reachable Phi semantics.

GNU Windows-target cargo check passed here. Upstream validation includes native AMD wave64 and NVIDIA direct-DXIL GPU suites; Windows/MSVC and GPU execution were not repeated on this host.

Adapted from PR xcl-dev#2640.
Assisted-by: Google Antigravity (Gemini 4 Neon)
Assisted-by: Codex (GPT-5.6-sol)

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/064-precompile-runtime-variants branch from 0121732 to f1b6aca Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/065-prune-dxil-values branch from 5c4810d to 87b240f Compare November 27, 2026 05:14
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