Recompiler: reuse the direct DXIL block traversal buffer #1758

Open
jeroenhaentjens wants to merge 1 commit from upstream-pr/1768 into main
jeroenhaentjens commented 2026-11-24 20:26:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jeroenhaentjens on 2026-11-24T20:26:11Z.


Direct DXIL allocated a separate successor list per block when ordering the blocks and finding dominators. Reuse a single buffer during traversal and visit edges directly when building predecessors. Block order and emitted bytes were identical in both benchmark fixtures.

Part of #1269.

What is in it

  • module.rs shares the successor buffer across DFS frames and builds block positions only for serialization. module/opt.rs uses the same successor visitor without allocating a temporary list per block.

Tested

  • Windows 11 Pro 26200, Intel i7-9750H, 32 GB RAM, NVIDIA Quadro RTX 3000 (driver 32.0.15.9706), Rust/Cargo 1.100.0 MSVC, DXC 1.9.2609.5.

  • Clean PR head 22b21db2d45af526142f4e86165e14918125fb87. cargo build --workspace --locked passed. cargo test --workspace --locked --no-fail-fast -- --test-threads=4 reported 889 passed, 0 failed, 42 ignored in debug builds without debug symbols or incremental compilation. XCL_ADAPTER=nvidia, XCL_HEAP_WINDOWS=1. The bundled title tests passed.

  • Three tests counted as passes by Cargo returned early: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no native wave64), and pso_measurement_compiles_an_exact_synthetic_record (cache control unavailable, 0x887A002D).

  • Benchmark base b9b6ea6 vs patch tree b802bf0 (same tree as this head), with local timing and output capture on both sides. The existing synthetic long_programs_translate shader has 4,001 instructions. Across 12 paired, alternating debug runs, translation including validation had a median of 232.09 → 227.84 ms (ranges 222.41–251.61 and 216.74–242.03 ms). Both outputs were exactly 127,704 bytes and byte-identical (SHA-256 5044913c819dff245ee6e05e66847342933c3b7e8deabebf6072d3a835d8eba5).

  • Isolated Rust -O benchmark of module optimization and serialization using 5,000 consecutive diamond branches (15,001 blocks), six alternating pairs. Allocations including reallocations fell from 65,094 to 20,115. Median time was 8.22 → 5.70 ms and both bitcode outputs were identical. This measures CPU translation work.

  • Independent AMD/RADV corpus measurement by YaBulochka: base b9b6ea6 and head 22b21db, 500 shader records, three runs per side. Median wall time was 91.4 → 95.4 s, within the reported run-to-run spread; all 500 compiled on each run. This does not demonstrate an end-to-end speedup on that workload.

Regression run
Paired retail smoke runs supplied by Toons29, reproduced below verbatim from that report, not run locally: AMD Radeon RX 9070 (driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, XCL_NETWORK=0. Same title and 60-second duration; the baseline commit is on main and the PR commit matches the current head.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 22b21db2d45af526142f4e86165e14918125fb87
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1632 (PresentX 1632)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14814 MB

Not tested

  • No cold NVIDIA driver PSO benchmark or measured improvement in time to a playable frame. The third-party smoke run is a regression check and does not establish whether the changed direct-DXIL code ran. Native wave64 and the 42 ignored tests were not exercised locally; no XCL_SAMPLE_* inputs were supplied.

AI use

  • Codex (gpt-6.2-sol) implemented the patch, designed and ran the benchmarks and validation, and drafted this description.
  • Toons29 reports using Claude Code (Claude Opus 5.5) for the smoke runs. Codex incorporated the linked independent reports and checked their commit identities and the PR-description gate; the exact model identifier for this description update is unavailable.
<!-- greyfinch-sync:ivall/xcl:issue:5479761736 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768). Originally posted by [jeroenhaentjens](https://github.com/jeroenhaentjens) on 2026-11-24T20:26:11Z. --- Direct DXIL allocated a separate successor list per block when ordering the blocks and finding dominators. Reuse a single buffer during traversal and visit edges directly when building predecessors. Block order and emitted bytes were identical in both benchmark fixtures. Part of #1269. **What is in it** - `module.rs` shares the successor buffer across DFS frames and builds block positions only for serialization. `module/opt.rs` uses the same successor visitor without allocating a temporary list per block. **Tested** - Windows 11 Pro 26200, Intel i7-9750H, 32 GB RAM, NVIDIA Quadro RTX 3000 (driver 32.0.15.9706), Rust/Cargo 1.100.0 MSVC, DXC 1.9.2609.5. - Clean PR head `22b21db2d45af526142f4e86165e14918125fb87`. `cargo build --workspace --locked` passed. `cargo test --workspace --locked --no-fail-fast -- --test-threads=4` reported **889 passed, 0 failed, 42 ignored** in debug builds without debug symbols or incremental compilation. `XCL_ADAPTER=nvidia`, `XCL_HEAP_WINDOWS=1`. The bundled title tests passed. - Three tests counted as passes by Cargo returned early: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no native wave64), and `pso_measurement_compiles_an_exact_synthetic_record` (cache control unavailable, 0x887A002D). - Benchmark base `b9b6ea6` vs patch tree `b802bf0` (same tree as this head), with local timing and output capture on both sides. The existing synthetic `long_programs_translate` shader has 4,001 instructions. Across 12 paired, alternating debug runs, translation including validation had a median of **232.09 → 227.84 ms** (ranges 222.41–251.61 and 216.74–242.03 ms). Both outputs were exactly 127,704 bytes and byte-identical (SHA-256 `5044913c819dff245ee6e05e66847342933c3b7e8deabebf6072d3a835d8eba5`). - Isolated Rust `-O` benchmark of module optimization and serialization using 5,000 consecutive diamond branches (15,001 blocks), six alternating pairs. Allocations including reallocations fell from **65,094 to 20,115**. Median time was **8.22 → 5.70 ms** and both bitcode outputs were identical. This measures CPU translation work. - [Independent AMD/RADV corpus measurement by YaBulochka](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7144539739): base `b9b6ea6` and head `22b21db`, 500 shader records, three runs per side. Median wall time was 91.4 → 95.4 s, within the reported run-to-run spread; all 500 compiled on each run. This does **not** demonstrate an end-to-end speedup on that workload. **Regression run** [Paired retail smoke runs supplied by Toons29](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7152077031), reproduced below verbatim from that report, not run locally: AMD Radeon RX 9070 (driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, `XCL_NETWORK=0`. Same title and 60-second duration; the baseline commit is on main and the PR commit matches the current head. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 22b21db2d45af526142f4e86165e14918125fb87 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1632 (PresentX 1632) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` **Not tested** - No cold NVIDIA driver PSO benchmark or measured improvement in time to a playable frame. The third-party smoke run is a regression check and does not establish whether the changed direct-DXIL code ran. Native wave64 and the 42 ignored tests were not exercised locally; no `XCL_SAMPLE_*` inputs were supplied. **AI use** - Codex (`gpt-6.2-sol`) implemented the patch, designed and ran the benchmarks and validation, and drafted this description. - Toons29 reports using Claude Code (Claude Opus 5.5) for the smoke runs. Codex incorporated the linked independent reports and checked their commit identities and the PR-description gate; the exact model identifier for this description update is unavailable.
YaBulochka commented 2026-11-24 21:09:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by YaBulochka on 2026-11-24T21:08:53Z.


AMD/RADV check of this change: on this machine it is within run-to-run noise - no measurable win, no regression.

GPU RX 7600 XT (RDNA3), radv as reported by the title runs on this box
OS Linux, Wine 11.22, x86_64-pc-windows-gnu, release
Input retail shaders.rpf, 411,695,600 B, 26,503 records
Mode xcl shaders <pack> --compile 500 --json, XCL_DIRECT_DXIL=1, no title run, no adapter work

Three interleaved runs per side, same pack, same flags:

base b9b6ea6 PR 22b21db
wall 88.9 / 91.4 / 96.2 s 93.5 / 95.4 / 96.3 s
median 0.48 / 0.53 / 0.54 s 0.47 / 0.50 / 0.55 s
p90 3.08 / 3.37 / 3.66 s 3.46 / 3.48 / 3.87 s
max 9.6 / 12.2 / 15.7 s 11.1 / 14.2 / 18.1 s
sum (CPU) 568 / 614 / 648 s 632 / 644 / 659 s

Reading: the medians favour the PR by about 5% (0.50 vs 0.53), but the wall, the p90 and the CPU sum do not, and the spread across three runs on one side (88.9-96.2 s) is larger than the difference between the sides (91.4 vs 95.4). So on AMD/RADV this is not a measured improvement - it is consistent with "no cost", which is still worth knowing since the buffer reuse only touches walk order.

If it helps, the number that dominates here is not the traversal but the biggest shaders: the PedTransformSkin family at 7-9 s and ~1 MB HLSL each, which is the same shape I reported in #1269.

Builds: both heads built clean with cargo build --release --target x86_64-pc-windows-gnu -p xcl; dxc_compiled 500, dxc_failed empty on every run.

<!-- greyfinch-sync:ivall/xcl:comment:7144539739 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7144539739). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-24T21:08:53Z. --- AMD/RADV check of this change: on this machine it is within run-to-run noise - no measurable win, no regression. | | | |---|---| | GPU | RX 7600 XT (RDNA3), radv as reported by the title runs on this box | | OS | Linux, Wine 11.22, `x86_64-pc-windows-gnu`, release | | Input | retail `shaders.rpf`, 411,695,600 B, 26,503 records | | Mode | `xcl shaders <pack> --compile 500 --json`, `XCL_DIRECT_DXIL=1`, no title run, no adapter work | Three interleaved runs per side, same pack, same flags: | | base `b9b6ea6` | PR `22b21db` | |---|---|---| | wall | 88.9 / 91.4 / 96.2 s | 93.5 / 95.4 / 96.3 s | | median | 0.48 / 0.53 / 0.54 s | 0.47 / 0.50 / 0.55 s | | p90 | 3.08 / 3.37 / 3.66 s | 3.46 / 3.48 / 3.87 s | | max | 9.6 / 12.2 / 15.7 s | 11.1 / 14.2 / 18.1 s | | sum (CPU) | 568 / 614 / 648 s | 632 / 644 / 659 s | Reading: the medians favour the PR by about 5% (0.50 vs 0.53), but the wall, the p90 and the CPU sum do not, and the spread across three runs on one side (88.9-96.2 s) is larger than the difference between the sides (91.4 vs 95.4). So on AMD/RADV this is not a measured improvement - it is consistent with "no cost", which is still worth knowing since the buffer reuse only touches walk order. If it helps, the number that dominates here is not the traversal but the biggest shaders: the `PedTransformSkin` family at 7-9 s and ~1 MB HLSL each, which is the same shape I reported in #1269. Builds: both heads built clean with `cargo build --release --target x86_64-pc-windows-gnu -p xcl`; `dxc_compiled` 500, `dxc_failed` empty on every run.
Toons29 commented 2026-11-25 04:10:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:36:44Z.


Regression run of 22b21db2 on the retail title, for this PR's Regression run section. Both blocks are from scripts/smoke.ps1 as printed, not edited: main on 4178e888, this PR on its head commit with no uncommitted changes, same title and time.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1618 (PresentX 1618)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 14831 MB
xcl-smoke v1
commit: 22b21db2d45af526142f4e86165e14918125fb87
gpu: AMD Radeon RX 9070
title: game.exe
seconds: 60
exit: 0x0
frames shown: 1632 (PresentX 1632)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14814 MB

Against the limits in CONTRIBUTING.md: 101 % of main's frames, 100 % of its peak commit, no crash, no device removal.

AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, cargo build --release -p xcl, 60 s, XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.

AI use: Claude Code (Claude Opus 5.5) built both trees and ran scripts/smoke.ps1; I checked the blocks before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7152077031 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7152077031). Originally posted by [Toons29](https://github.com/Toons29) on 2026-11-25T03:36:44Z. --- Regression run of `22b21db2` on the retail title, for this PR's **Regression run** section. Both blocks are from `scripts/smoke.ps1` as printed, not edited: `main` on `4178e888`, this PR on its head commit with no uncommitted changes, same title and time. ``` xcl-smoke v1 commit: 4178e888c0b5be50a2887eda45cdb832763b68a4 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1618 (PresentX 1618) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 14831 MB ``` ``` xcl-smoke v1 commit: 22b21db2d45af526142f4e86165e14918125fb87 gpu: AMD Radeon RX 9070 title: game.exe seconds: 60 exit: 0x0 frames shown: 1632 (PresentX 1632) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14814 MB ``` Against the limits in CONTRIBUTING.md: 101 % of `main`'s frames, 100 % of its peak commit, no crash, no device removal. AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, `cargo build --release -p xcl`, 60 s, `XCL_NETWORK=0`. This is a regression check only: it does not show whether the run reaches the code this PR changes. AI use: Claude Code (Claude Opus 5.5) built both trees and ran `scripts/smoke.ps1`; I checked the blocks before posting.
futurepro62 commented 2026-11-25 17:07:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-25T16:46:11Z.


Full-suite run, since this PR has no test report yet. Tested exact head 22b21db (on its base b9b6ea6).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 888 passed, 0 failed, 42 ignored. SKIPPED (no wave64): gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware.
  • No new #[test] functions in the diff.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 889 passed, 0 failed, 42 ignored. SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows).
  • --skip leaves out tests that fail on main 06c9f55 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, and gpu::dxil::fuzz_tests seeds 70, 545, 1019 and 1507 fail CreateComputePipelineState with E_OUTOFMEMORY on this card (drivers 616.64 and 621.40). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). The AMD run does not set XCL_REQUIRE_GPU.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7168503458 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7168503458). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-25T16:46:11Z. --- Full-suite run, since this PR has no test report yet. Tested exact head `22b21db` (on its base `b9b6ea6`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests`: **888 passed, 0 failed, 42 ignored**. SKIPPED (no wave64): `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`. - No new `#[test]` functions in the diff. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1`: **889 passed, 0 failed, 42 ignored**. SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows). - `--skip` leaves out tests that fail on main `06c9f55` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, and `gpu::dxil::fuzz_tests` seeds 70, 545, 1019 and 1507 fail `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card (drivers 616.64 and 621.40). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). The AMD run does not set `XCL_REQUIRE_GPU`. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
throny commented 2026-11-27 20:17:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:17:45Z.


merge-check claim
head: 22b21db2d4

<!-- greyfinch-sync:ivall/xcl:comment:7227364293 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7227364293). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:17:45Z. --- merge-check claim head: 22b21db2d45af526142f4e86165e14918125fb87
throny commented 2026-11-27 20:32:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:32:07Z.


merge-check
base: 6089122a
head: 22b21db2d4
merge: clean
build: cargo build --workspace -> FAILED (12 x E0599)
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> not run (the merge result does not build); base alone: 1465 passed, 0 failed, 47 ignored
review: blocking: merged onto current main it does not compile, although GitHub shows no conflict. The PR deletes Module::successors and Module::block_layout; main has since gained callers in gpu/dxil/module/opt.rs and module/split.rs that the PR does not touch: 12 errors E0599 ("no method named block_layout / successors"), the first at opt.rs:634. The PR's own CI is green because it ran on the older base. The logic itself reads equivalent to the old code (same visiting order).
performance: opt-in direct-DXIL path, translation time only, fewer allocations (reasoned).
verdict: not yet: rebase onto current main and move the new callers to block_order / for_each_successor; I will rerun the suite on the new head.
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7227597922 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7227597922). Originally posted by [throny](https://github.com/throny) on 2026-11-27T20:32:07Z. --- merge-check base: 6089122a head: 22b21db2d45af526142f4e86165e14918125fb87 merge: clean build: cargo build --workspace -> FAILED (12 x E0599) tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> not run (the merge result does not build); base alone: 1465 passed, 0 failed, 47 ignored review: blocking: merged onto current main it does not compile, although GitHub shows no conflict. The PR deletes Module::successors and Module::block_layout; main has since gained callers in gpu/dxil/module/opt.rs and module/split.rs that the PR does not touch: 12 errors E0599 ("no method named block_layout / successors"), the first at opt.rs:634. The PR's own CI is green because it ran on the older base. The logic itself reads equivalent to the old code (same visiting order). performance: opt-in direct-DXIL path, translation time only, fewer allocations (reasoned). verdict: not yet: rebase onto current main and move the new callers to block_order / for_each_successor; I will rerun the suite on the new head. hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
KOLESNiii commented 2026-11-28 00:18:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:18:49Z.


merge-check claim
head: 22b21db2d4

<!-- greyfinch-sync:ivall/xcl:comment:7230814803 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7230814803). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T00:18:49Z. --- merge-check claim head: 22b21db2d45af526142f4e86165e14918125fb87
KOLESNiii commented 2026-11-28 00:28:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:28:15Z.


merge-check
base: 2c717a043c
head: 22b21db2d4
merge: clean (no textual conflicts)
build: cargo build --workspace -> failed: 12 errors, first error[E0599] no method named block_layout found for &mut Module at crates/xcl/src/gpu/dxil/module/opt.rs:634 (also opt.rs:717, and successors at opt.rs:755). main added these callers after this PR's base; the PR renames block_layout() to block_order() and replaces successors() with for_each_successor().
tests: not run (the merge does not build)
review: the whole diff was read (module.rs block_order / for_each_successor, opt.rs). On its own it keeps the old block order (each DFS frame sorts its own tail of the shared successor buffer, descending, and pops from the end); the only problem found is the build break above, against the callers main gained.
performance: reasoned, not measured: shader translation only; no runtime cost per frame.
verdict: not yet: build fails on the merge (rebase onto main and move the new opt.rs callers to block_order() / for_each_successor())
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc; trial merge 6a24ccc94689aef5be51e52a076d147307e4e7e7 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).

<!-- greyfinch-sync:ivall/xcl:comment:7230936837 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7230936837). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T00:28:15Z. --- merge-check base: 2c717a043c8488938179fca81da4bb9e7913a358 head: 22b21db2d45af526142f4e86165e14918125fb87 merge: clean (no textual conflicts) build: cargo build --workspace -> failed: 12 errors, first error[E0599] no method named `block_layout` found for `&mut Module` at crates/xcl/src/gpu/dxil/module/opt.rs:634 (also opt.rs:717, and `successors` at opt.rs:755). `main` added these callers after this PR's base; the PR renames `block_layout()` to `block_order()` and replaces `successors()` with `for_each_successor()`. tests: not run (the merge does not build) review: the whole diff was read (module.rs block_order / for_each_successor, opt.rs). On its own it keeps the old block order (each DFS frame sorts its own tail of the shared successor buffer, descending, and pops from the end); the only problem found is the build break above, against the callers `main` gained. performance: reasoned, not measured: shader translation only; no runtime cost per frame. verdict: not yet: build fails on the merge (rebase onto main and move the new opt.rs callers to block_order() / for_each_successor()) hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc; trial merge 6a24ccc94689aef5be51e52a076d147307e4e7e7 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).
Foniass commented 2026-12-01 06:43:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:43:19Z.


Triage (#1607) – head 22b21db

No open or merged PR changes block_layout or successors in gpu/dxil/module.rs. #1860 changes how optimize calls block_layout, so the two will conflict.
No problems found in the diff. With the shared successor buffer, each DFS frame still pops only its own tail, so the order is the same as before.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303195888 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1768#issuecomment-7303195888). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:43:19Z. --- **Triage (#1607)** – head 22b21db No open or merged PR changes `block_layout` or `successors` in `gpu/dxil/module.rs`. #1860 changes how `optimize` calls `block_layout`, so the two will conflict. No problems found in the diff. With the shared successor buffer, each DFS frame still pops only its own tail, so the order is the same as before. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1768:upstream-pr/1768'
git switch 'upstream-pr/1768'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1768'
git switch 'upstream-pr/1768'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1768'
git switch 'upstream-pr/1768'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1768'
git switch 'main'
git merge --squash 'upstream-pr/1768'
git switch 'main'
git merge --ff-only 'upstream-pr/1768'
git switch 'main'
git merge 'upstream-pr/1768'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1758
No description provided.