Skip to content

Recompiler: remove direct DXIL CFG allocation overhead - #52

Draft
bmjask wants to merge 1 commit into
stack/048-busy-allocator-retentionfrom
stack/049-direct-dxil-cfg-allocations
Draft

bmjask wants to merge 1 commit into
stack/048-busy-allocator-retentionfrom
stack/049-direct-dxil-cfg-allocations

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #51.

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

What and why

This unit isolates recompiler: remove direct dxil cfg allocation overhead as one reviewable step in the redesign.

What is in it

  • e0b03658 is the cleaned-stack form of integrated commit d7d60c44.

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.

…n acyclic CFGs in direct DXIL cfg

Replace BTreeMap/BTreeSet leader and block-index tables in Cfg::build_with
with binary search over monotonically decoded instruction PCs and flat
Vec tables, remove the unused reach BTreeSet, replace heap-allocated
succ_of Vec<usize> with a Copy stack-allocated Succs, avoid cloning
preds[x] in make_reducible, and short-circuit the dominator pass in
make_reducible when order() finds no back edges (acyclic DAG).

Part of xcl-dev#2508
Part of xcl-dev#1833
Assisted-by: Google Antigravity (Gemini 4 Neon)

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/049-direct-dxil-cfg-allocations branch from cc1237b to cd7e2c3 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