Skip to content

Recompiler: simplify direct-DXIL integer min and max - #73

Draft
bmjask wants to merge 1 commit into
stack/069-amd-driver-blob-defaultfrom
stack/070-simplify-integer-minmax
Draft

bmjask wants to merge 1 commit into
stack/069-amd-driver-blob-defaultfrom
stack/070-simplify-integer-minmax

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #72.

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

What and why

This unit isolates recompiler: simplify direct-dxil integer min and max as one reviewable step in the redesign.

What is in it

  • e803f08b is the cleaned-stack form of integrated commit 8ba2feaa.

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/070-simplify-integer-minmax branch from e803f08 to 8a7d9d1 Compare November 27, 2026 00:46
Track conservative signed and unsigned i32 intervals through common SSA forms, then fold min/max identities, absorption, and non-overlapping bounds. This collapses translated clamp and med3 sequences after mem2reg without removing soundness guards for signed masks.

Adapted from xcl-dev#2568. Upstream reports 573/573 DXIL validation, direct GPU parity across NVIDIA and AMD, and 133,484 fewer emitted bytes across the corpus. Locally cross-checked only with the GNU Windows target; Windows GPU execution remains untested here.

Part of xcl-dev#2508

Assisted-by: Google Antigravity (Gemini 4 Neon)

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/070-simplify-integer-minmax branch from 8a7d9d1 to eb2fbc8 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