Skip to content

Recompiler: fold unobserved EXEC selects in direct DXIL - #112

Draft
bmjask wants to merge 1 commit into
stack/108-internal-queue-bypassfrom
stack/109-fold-unobserved-exec-selects
Draft

bmjask wants to merge 1 commit into
stack/108-internal-queue-bypassfrom
stack/109-fold-unobserved-exec-selects

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #111.

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

What and why

This unit isolates recompiler: fold unobserved exec selects in direct dxil as one reviewable step in the redesign.

Upstream overlap

This overlaps upstream PR xcl-dev#2576 and is retained only as an internal reconciliation draft.

What is in it

  • 327f9d96 is the cleaned-stack form of integrated commit e9a5b739.

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.

@bmjask
bmjask force-pushed the stack/109-fold-unobserved-exec-selects branch from 327f9d9 to c5c2e17 Compare November 27, 2026 00:45
@bmjask
bmjask force-pushed the stack/108-internal-queue-bypass branch from 2c1e54a to 6481d52 Compare November 27, 2026 01:01
@bmjask
bmjask force-pushed the stack/109-fold-unobserved-exec-selects branch from c5c2e17 to 4d59a58 Compare November 27, 2026 01:01
Guest VGPR writes preserve inactive lanes as select(exec, new, old).
Lane-local operations whose values are ultimately observed only under the
same condition cannot observe the preserved arm, so read through it and
let DCE remove the resulting dead selects.

Use a conservative observation lattice: phis, memory, atomics, integer
division, wave/quad operations, derivatives, and unknown calls observe all
lanes. Keep an opt-out and before/after GPU parity coverage for wave32,
split wave64, inactive lanes, and cross-lane barriers.

Assisted-by: Claude Code (Claude Opus 5.5)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/109-fold-unobserved-exec-selects branch from 4d59a58 to b41781e 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