Skip to content

Recompiler: make heap-window load and store guards branchless - #78

Draft
bmjask wants to merge 1 commit into
stack/074-retired-queue-address-cachesfrom
stack/075-branchless-heap-window-guards
Draft

bmjask wants to merge 1 commit into
stack/074-retired-queue-address-cachesfrom
stack/075-branchless-heap-window-guards

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #77.

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

What and why

This unit isolates recompiler: make heap-window load and store guards branchless as one reviewable step in the redesign.

Upstream overlap

This is one separated half of upstream PR xcl-dev#2554 and is retained only as an internal reconciliation draft.

What is in it

  • efd91363 is the cleaned-stack form of integrated commit fb13d347.

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/075-branchless-heap-window-guards branch from efd9136 to 871e53a Compare November 27, 2026 00:46
Reserve null raw-UAV descriptors after the memory-window slots. Redirect ordinary out-of-layout loads and stores with a descriptor select, while retaining explicit guards for atomics whose return values require defined handling.

Keep runtime and GPU-test heaps on the same descriptor ABI and add a deterministic accessor-shape test. Adapted as the behavior-independent half of xcl-dev#2554; its upstream RTX 4090 investigation attributes about six seconds of a large cold compile to the duplicated guard branches.

Locally cross-checked with the GNU Windows target; Windows GPU execution remains untested here.

Assisted-by: Claude Code (model not disclosed)

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/075-branchless-heap-window-guards branch from 871e53a to ebef0a7 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