Recompiler: skip scalar-load analysis for direct compact emission #2756

Open
KOLESNiii wants to merge 2 commits from upstream-pr/2766 into main
KOLESNiii commented 2026-11-26 11:15:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T11:15:56Z.


The direct DXIL backend ran reload::analyze for every compute and kernel entry, including those it then emits in the compact form. Only the plain block loop reads the result, and that loop runs only when plan.is_none(). Compact emission lowers its blocks without the analysis, so on that path the fixed-point pass over the whole CFG was thrown away. The call is now guarded with plan.is_none(). Fixes #2746.

What is in it

  • crates/xcl/src/gpu/dxil/kernel.rs: run reload::analyze only when there is no compact plan (one line, plus the comment above it).
  • crates/xcl/src/gpu/dxil/compact_tests.rs: scalar_load_compact_reload_comparison, taken from #2805 with its author (@CryingLaughing) as co-author. It checks that a generated program with repeated scalar loads has live repeats for the reload analysis and takes both the ordinary and the compact path; with XCL_2746_* set it also compares the DXIL with a baseline and times the automatic compact translation.

Tested

  • AMD Ryzen 5 3600XT, NVIDIA GeForce RTX 2070 SUPER (driver 32.0.16.2140), Windows 11 build 26300, rustc 1.100.0.

  • cargo test --workspace -- --test-threads=4 (debug) at 5ef14a32: 1436 passed, 0 failed, 47 ignored. 25 SKIPPED: 21 no wave64, 3 refused wave32 per-lane forms, 1 no heap windows.

  • Probe (a throwaway in-crate #[cfg(test)] module, not part of this PR), release build, medians of 5 passes. Synthetic wave32 kernels with 28,673 instructions and 8,193 reachable blocks, 16 / 128 / 256 distinct s_load_dwordx4 offsets. For each program, automatic selection and forced compact (translate_full_as(.., true)) give the same bytes.

    distinct loads whole compact translation, main (b49be183) this PR DXIL
    16 161.4 ms 47.0 ms identical (7,092 B)
    128 869.4 ms 51.1 ms identical (27,596 B)
    256 1,675.1 ms 55.4 ms identical (49,900 B)

    reload::analyze alone takes 114 / 816 / 1,614 ms on these programs, the difference between the two columns. Full numbers are in https://github.com/xcl-dev/xcl/issues/2746#issuecomment-7189794278.

  • The smoke title translates two compute shaders in the compact form (14,377 and 13,890 blocks), in both runs.

Regression run

xcl-smoke v1
commit: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1591 (PresentX 1591)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 17442 MB
xcl-smoke v1
commit: 2e146f94038bb19b1acaab3a4313feceea39d513
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1278 (PresentX 1278)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 15061 MB

Both runs: XCL_PRESS_AT=25:A, XCL_PREPARE=0. Frame counts vary from run to run on this title (earlier heads of this PR with the same runtime code showed 1185 and 1414, against 978 on main b49be183); the change only skips an analysis whose result the compact path never reads, and its DXIL output is byte-identical, so I do not attribute the difference to it. The PR's head is based on main 10d27297; the main run is on the newer 9dfbe3ea. the suite counts above are from 5ef14a32, before that rebase.

Not tested

  • No test fails without the fix: the change affects only time spent and its output is byte-identical. The added comparison test passes on main too. The plain path's reload reuse is still covered by reload::tests::the_translator_emits_a_repeated_load_once.
  • Translation time of the title's two compact shaders was not measured on its own (the log has no per-translation timing).
  • Wave64 GPUs (AMD), and the 25 tests skipped on this adapter.

AI use

  • Claude Code with Claude Opus 5.5: wrote the change and the probe, brought in the test from #2805, ran the tests, probe and smoke runs on the hardware above, and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5509022381 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-26T11:15:56Z. --- The direct DXIL backend ran `reload::analyze` for every compute and kernel entry, including those it then emits in the compact form. Only the plain block loop reads the result, and that loop runs only when `plan.is_none()`. Compact emission lowers its blocks without the analysis, so on that path the fixed-point pass over the whole CFG was thrown away. The call is now guarded with `plan.is_none()`. Fixes #2746. **What is in it** - `crates/xcl/src/gpu/dxil/kernel.rs`: run `reload::analyze` only when there is no compact plan (one line, plus the comment above it). - `crates/xcl/src/gpu/dxil/compact_tests.rs`: `scalar_load_compact_reload_comparison`, taken from #2805 with its author (@CryingLaughing) as co-author. It checks that a generated program with repeated scalar loads has live repeats for the reload analysis and takes both the ordinary and the compact path; with `XCL_2746_*` set it also compares the DXIL with a baseline and times the automatic compact translation. **Tested** - AMD Ryzen 5 3600XT, NVIDIA GeForce RTX 2070 SUPER (driver 32.0.16.2140), Windows 11 build 26300, rustc 1.100.0. - `cargo test --workspace -- --test-threads=4` (debug) at `5ef14a32`: 1436 passed, 0 failed, 47 ignored. 25 `SKIPPED`: 21 `no wave64`, 3 refused wave32 per-lane forms, 1 `no heap windows`. - Probe (a throwaway in-crate `#[cfg(test)]` module, not part of this PR), release build, medians of 5 passes. Synthetic wave32 kernels with 28,673 instructions and 8,193 reachable blocks, 16 / 128 / 256 distinct `s_load_dwordx4` offsets. For each program, automatic selection and forced compact (`translate_full_as(.., true)`) give the same bytes. | distinct loads | whole compact translation, `main` (`b49be183`) | this PR | DXIL | |---:|---:|---:|---| | 16 | 161.4 ms | 47.0 ms | identical (7,092 B) | | 128 | 869.4 ms | 51.1 ms | identical (27,596 B) | | 256 | 1,675.1 ms | 55.4 ms | identical (49,900 B) | `reload::analyze` alone takes 114 / 816 / 1,614 ms on these programs, the difference between the two columns. Full numbers are in https://github.com/xcl-dev/xcl/issues/2746#issuecomment-7189794278. - The smoke title translates two compute shaders in the compact form (14,377 and 13,890 blocks), in both runs. **Regression run** ``` xcl-smoke v1 commit: 9dfbe3ea6653a9c76ef3ea0d66187a4b5407483b gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1591 (PresentX 1591) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 17442 MB ``` ``` xcl-smoke v1 commit: 2e146f94038bb19b1acaab3a4313feceea39d513 gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1278 (PresentX 1278) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 15061 MB ``` Both runs: `XCL_PRESS_AT=25:A`, `XCL_PREPARE=0`. Frame counts vary from run to run on this title (earlier heads of this PR with the same runtime code showed 1185 and 1414, against 978 on `main` `b49be183`); the change only skips an analysis whose result the compact path never reads, and its DXIL output is byte-identical, so I do not attribute the difference to it. The PR's head is based on `main` `10d27297`; the `main` run is on the newer `9dfbe3ea`. the suite counts above are from `5ef14a32`, before that rebase. **Not tested** - No test fails without the fix: the change affects only time spent and its output is byte-identical. The added comparison test passes on `main` too. The plain path's reload reuse is still covered by `reload::tests::the_translator_emits_a_repeated_load_once`. - Translation time of the title's two compact shaders was not measured on its own (the log has no per-translation timing). - Wave64 GPUs (AMD), and the 25 tests skipped on this adapter. **AI use** - Claude Code with Claude Opus 5.5: wrote the change and the probe, brought in the test from #2805, ran the tests, probe and smoke runs on the hardware above, and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MatyEjsr commented 2026-11-26 12:17:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MatyEjsr on 2026-11-26T12:17:59Z.


Updated independent verification of PR #2766 at head 5ef14a321b15ff9baca95345c39a901a7307c4d7 (based on main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7; merges cleanly with current main 8b957bec with no conflicts).

Follow-up & duplicate check

  • crates/xcl/src/gpu/dxil/kernel.rs is unchanged from previously verified f276e58d: guarding reload::analyze(&cfg) with plan.is_none() preserves plain lowering while removing unused CFG analysis on compact emission. Neither current main (8b957bec) nor nvidia-dev (eae01502) has superseded this change.
  • Commit 5ef14a32 adds repeated_scalar_loads and scalar_load_compact_reload_comparison in crates/xcl/src/gpu/dxil/compact_tests.rs from still-open duplicate PR #2805 (group D129) with co-authorship credit, so #2766 now includes both the fix and the comparison test.

Tested

  • OS / hardware: Windows 11 Pro for Workstations 25H2 (build 26200.7171, Developer Mode enabled), AMD Ryzen 7 7800X3D, 31.4 GB RAM, NVIDIA GeForce RTX 3090 (24 GB, driver 32.0.16.1742 / 617.42, wave32), rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2602.17.
  • cargo build --workspace -j 8 (debug) and cargo build --release --workspace -j 8 (release): passed.
  • cargo test --workspace -j 8 -- --test-threads=8 (debug): 1436 passed, 0 failed, 47 ignored across 37 targets.
    • SKIPPED (28): 21 no wave64 (dispatch_chain_native_wave64_builds_whole, gpu::recomp::lower / lower_dxil / tests wave64 variants), 3 refused wave32 per-lane forms (V_MUL_F16, V_PK_MUL_F16, V_CVT_F16_F32 for #1426), 2 no d3d12SDKLayers.dll (the title under the debug layer), 1 no heap windows (heap_window_out_of_memory_falls_back_to_the_switch_form), 1 no D3D12 debug layer (uploads_start_from_each_subresources_state).
  • Targeted checks at 5ef14a32 (--test-threads=1):
    • cargo test -p xcl --lib gpu::dxil::reload::tests: 6 passed, 0 failed, 0 ignored, 0 SKIPPED.
    • cargo test -p xcl --lib gpu::dxil::compact_tests -- --nocapture: 14 passed, 0 failed, 0 ignored, 0 SKIPPED (scalar_load_compact_reload_comparison: ordinary=8200 B, compact=4616 B).
    • XCL_DIRECT_DXIL=1 and XCL_DIRECT_DXIL=all cargo test -p xcl --test gpu_compute_e2e: 7 passed, 0 failed, 0 ignored, 1 SKIPPED (no heap windows) in both modes.
    • Release scalar_load_compact_reload_comparison with XCL_2746_BENCH=1 (automatic plan: blocks=16385, representatives=131, words=5128): self-roundtrip determinism (XCL_2746_DXIL_DIR write pass -> XCL_2746_BASELINE_DIR verify pass at 5ef14a32) matched all bytes for kernel-ordinary.dxil (8,200 B), kernel-compact.dxil (4,616 B), and compute-automatic.dxil (24,980 B); automatic compact whole translation median 39,558 µs (write) / 38,852 µs (verify).
  • Retail shader corpus byte-identity & timings (previously measured on this machine at f276e58d vs main b49be183, release, --direct --validate; kernel.rs is unchanged at 5ef14a32):
    • Seeded 256-record sample (--sample 256 --seed 1 --validate --threads 8, 41 over cap skipped): 215/215 validated and 100% byte-identical (0 diffs).
    • Real retail compact compute shaders (5 interleaved pairs, --threads 1, byte-identical DXIL): 95cc13288a27a96e 675.15 ms -> 232.41 ms (2.91x), 56c0cd3b82a00c6e 337.87 ms -> 157.07 ms (2.15x).

Regression run

  • 60 s retail smoke runs (release, same title c1cc91a4, shared DXIL cache):

main:

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14104 MB

PR #2766 head:

xcl-smoke v1
commit: 5ef14a321b15ff9baca95345c39a901a7307c4d7
gpu: NVIDIA GeForce RTX 3090
title: c1cc91a4
seconds: 60
exit: 0x0
frames shown: 1590 (PresentX 1590)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 13949 MB

Not tested

  • AMD / native wave64 GPUs, Intel GPUs, Linux / Wine, the 28 tests skipped on this adapter (wave64, #1426 refused f16/f32 per-lane forms, missing D3D12 debug layer, and XCL_HEAP_WINDOWS=1), comparing XCL_2746_BASELINE_DIR against an unpatched main baseline, and re-running the per-shader retail corpus timing/byte-identity comparison at 5ef14a32 (kernel.rs is unchanged from f276e58d).

AI use

  • Antigravity (agy) with gemini-pro-orchestrator-neon (audited by gemini-pro-orchestrator-argon): verified the diff, duplicate status, and mergeability against main, ran the workspace, targeted, Direct DXIL, release benchmark, and smoke checks on the hardware above, and drafted/audited this updated report.
<!-- greyfinch-sync:ivall/xcl:comment:7191823437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7191823437). Originally posted by [MatyEjsr](https://github.com/MatyEjsr) on 2026-11-26T12:17:59Z. --- Updated independent verification of PR #2766 at head `5ef14a321b15ff9baca95345c39a901a7307c4d7` (based on `main` `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`; merges cleanly with current `main` `8b957bec` with no conflicts). **Follow-up & duplicate check** - `crates/xcl/src/gpu/dxil/kernel.rs` is unchanged from previously verified `f276e58d`: guarding `reload::analyze(&cfg)` with `plan.is_none()` preserves plain lowering while removing unused CFG analysis on compact emission. Neither current `main` (`8b957bec`) nor `nvidia-dev` (`eae01502`) has superseded this change. - Commit `5ef14a32` adds `repeated_scalar_loads` and `scalar_load_compact_reload_comparison` in `crates/xcl/src/gpu/dxil/compact_tests.rs` from still-open duplicate PR #2805 (group D129) with co-authorship credit, so #2766 now includes both the fix and the comparison test. **Tested** - OS / hardware: Windows 11 Pro for Workstations 25H2 (build 26200.7171, Developer Mode enabled), AMD Ryzen 7 7800X3D, 31.4 GB RAM, NVIDIA GeForce RTX 3090 (24 GB, driver 32.0.16.1742 / 617.42, wave32), `rustc 1.100.0` (`0ef1bc386 2026-11-09`), DXC `1.9.2602.17`. - `cargo build --workspace -j 8` (debug) and `cargo build --release --workspace -j 8` (release): passed. - `cargo test --workspace -j 8 -- --test-threads=8` (debug): **1436 passed, 0 failed, 47 ignored** across 37 targets. - `SKIPPED` (28): 21 `no wave64` (`dispatch_chain_native_wave64_builds_whole`, `gpu::recomp::lower` / `lower_dxil` / `tests` wave64 variants), 3 refused wave32 per-lane forms (`V_MUL_F16`, `V_PK_MUL_F16`, `V_CVT_F16_F32` for `#1426`), 2 `no d3d12SDKLayers.dll` (`the title under the debug layer`), 1 `no heap windows` (`heap_window_out_of_memory_falls_back_to_the_switch_form`), 1 `no D3D12 debug layer` (`uploads_start_from_each_subresources_state`). - Targeted checks at `5ef14a32` (`--test-threads=1`): - `cargo test -p xcl --lib gpu::dxil::reload::tests`: **6 passed, 0 failed, 0 ignored**, 0 `SKIPPED`. - `cargo test -p xcl --lib gpu::dxil::compact_tests -- --nocapture`: **14 passed, 0 failed, 0 ignored**, 0 `SKIPPED` (`scalar_load_compact_reload_comparison`: `ordinary=8200 B, compact=4616 B`). - `XCL_DIRECT_DXIL=1` and `XCL_DIRECT_DXIL=all` `cargo test -p xcl --test gpu_compute_e2e`: **7 passed, 0 failed, 0 ignored**, 1 `SKIPPED` (`no heap windows`) in both modes. - Release `scalar_load_compact_reload_comparison` with `XCL_2746_BENCH=1` (`automatic plan: blocks=16385, representatives=131, words=5128`): self-roundtrip determinism (`XCL_2746_DXIL_DIR` write pass -> `XCL_2746_BASELINE_DIR` verify pass at `5ef14a32`) matched all bytes for `kernel-ordinary.dxil` (8,200 B), `kernel-compact.dxil` (4,616 B), and `compute-automatic.dxil` (24,980 B); automatic compact whole translation median **39,558 µs** (write) / **38,852 µs** (verify). - Retail shader corpus byte-identity & timings (previously measured on this machine at `f276e58d` vs `main` `b49be183`, release, `--direct --validate`; `kernel.rs` is unchanged at `5ef14a32`): - Seeded 256-record sample (`--sample 256 --seed 1 --validate --threads 8`, 41 over cap skipped): **215/215** validated and **100% byte-identical** (`0` diffs). - Real retail compact compute shaders (5 interleaved pairs, `--threads 1`, byte-identical DXIL): `95cc13288a27a96e` 675.15 ms -> 232.41 ms (**2.91x**), `56c0cd3b82a00c6e` 337.87 ms -> 157.07 ms (**2.15x**). **Regression run** - 60 s retail smoke runs (release, same title `c1cc91a4`, shared DXIL cache): `main`: ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 3090 title: c1cc91a4 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14104 MB ``` PR #2766 head: ``` xcl-smoke v1 commit: 5ef14a321b15ff9baca95345c39a901a7307c4d7 gpu: NVIDIA GeForce RTX 3090 title: c1cc91a4 seconds: 60 exit: 0x0 frames shown: 1590 (PresentX 1590) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 13949 MB ``` **Not tested** - AMD / native wave64 GPUs, Intel GPUs, Linux / Wine, the 28 tests skipped on this adapter (wave64, `#1426` refused f16/f32 per-lane forms, missing D3D12 debug layer, and `XCL_HEAP_WINDOWS=1`), comparing `XCL_2746_BASELINE_DIR` against an unpatched `main` baseline, and re-running the per-shader retail corpus timing/byte-identity comparison at `5ef14a32` (`kernel.rs` is unchanged from `f276e58d`). **AI use** - Antigravity (agy) with gemini-pro-orchestrator-neon (audited by gemini-pro-orchestrator-argon): verified the diff, duplicate status, and mergeability against `main`, ran the workspace, targeted, Direct DXIL, release benchmark, and smoke checks on the hardware above, and drafted/audited this updated report.
thehollowedone commented 2026-11-26 14:03:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T13:40:32Z.


Independent Windows/NVIDIA check of #2766 head f276e58, based on main b49be183. I tested a clean detached checkout of the exact head.

Source check: the changed reload::analyze result is read by the plain block loop, which executes only when plan.is_none(). Compact emission runs on Some(plan), and its lowering does not set lw.reload. The guard leaves the plain path's analysis in place and removes work the compact path does not consume.

Tested: Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GiB (NVIDIA 621.35), rustc 1.99.1 MSVC, DXC 1.8.2502.11; XCL_ADAPTER=3080, writable local XCL_DXIL_CACHE.

  • cargo build --offline --locked --workspace: passed.
  • cargo test --offline --locked -p xcl --lib gpu::dxil::reload::tests -- --nocapture --test-threads=1: 6 passed, 0 failed, 0 ignored.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,435 passed, 0 failed, 47 ignored across 37 targets. There were 25 GPU SKIPPED notices (21 no wave64, three refused per-lane cases, one no heap windows); those are not GPU coverage. The suite log identifies the real RTX 3080 Ti backend.

Not tested: independent translation timing or byte-for-byte output comparison for a compact shader, a retail title smoke run, AMD wave64, and the skipped cases. This report verifies this revision's build and regression suite; it does not independently establish the reported translation speedup.

AI use: Codex (GPT-6.2 Sol) checked the source path, ran the tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7193679274 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7193679274). Originally posted by [thehollowedone](https://github.com/thehollowedone) on 2026-11-26T13:40:32Z. --- Independent Windows/NVIDIA check of [#2766 head `f276e58`](https://github.com/xcl-dev/xcl/commit/f276e58d0fd307e0654aae45fe664eee956f0818), based on [`main` `b49be183`](https://github.com/xcl-dev/xcl/commit/b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7). I tested a clean detached checkout of the exact head. **Source check:** the changed `reload::analyze` result is read by [the plain block loop](https://github.com/xcl-dev/xcl/blob/f276e58d0fd307e0654aae45fe664eee956f0818/crates/xcl/src/gpu/dxil/kernel.rs#L346-L375), which executes only when `plan.is_none()`. [Compact emission](https://github.com/xcl-dev/xcl/blob/f276e58d0fd307e0654aae45fe664eee956f0818/crates/xcl/src/gpu/dxil/compact.rs#L214-L219) runs on `Some(plan)`, and its lowering does not set `lw.reload`. The guard leaves the plain path's analysis in place and removes work the compact path does not consume. **Tested:** Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti 12 GiB (NVIDIA 621.35), rustc 1.99.1 MSVC, DXC 1.8.2502.11; `XCL_ADAPTER=3080`, writable local `XCL_DXIL_CACHE`. - `cargo build --offline --locked --workspace`: passed. - `cargo test --offline --locked -p xcl --lib gpu::dxil::reload::tests -- --nocapture --test-threads=1`: **6 passed, 0 failed, 0 ignored**. - `cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4`: **1,435 passed, 0 failed, 47 ignored** across 37 targets. There were 25 GPU `SKIPPED` notices (21 no wave64, three refused per-lane cases, one no heap windows); those are not GPU coverage. The suite log identifies the real RTX 3080 Ti backend. **Not tested:** independent translation timing or byte-for-byte output comparison for a compact shader, a retail title smoke run, AMD wave64, and the skipped cases. This report verifies this revision's build and regression suite; it does not independently establish the reported translation speedup. AI use: Codex (GPT-6.2 Sol) checked the source path, ran the tests, and drafted this report.
throny commented 2026-11-26 17:18:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-26T17:18:55Z.


Two contributors checked independently and found that this PR makes the same change as #2805 (for #2746): #1607, group D129. They suggest keeping #2805. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

<!-- greyfinch-sync:ivall/xcl:comment:7198815021 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7198815021). Originally posted by [throny](https://github.com/throny) on 2026-11-26T17:18:55Z. --- <!-- xcl-1607-hint:D129 --> Two contributors checked independently and found that this PR makes the same change as #2805 (for #2746): #1607, group D129. They suggest keeping #2805. If you agree, closing this PR or joining the other one would save the maintainers a review. If the two differ in a way the checks missed, a note in #1607 helps. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
bielfreedom commented 2026-11-26 17:22:38 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bielfreedom on 2026-11-26T17:22:38Z.


AMD Windows, translation side only, for #2766: on an RX 9070 XT this PR leaves all 2,689 retail compute programs byte for byte the same as main b49be18. It makes the two that take the compact form translate about 2.5× faster.

  • Setup: RX 9070 XT, Ryzen 7 7700, 32 GB RAM, Windows 11, release. This PR merged onto main b49be18, with a local patch in xcl shaders that writes each program's DXIL size and translation time. xcl shaders <retail shaders.rpf> --precompile --only cs, XCL_DIRECT_DXIL=1, switch windows, a fresh translation cache per run, 8 threads. Two runs per build.
  • DXIL: 885,910,100 B on both, 0 programs changed.
  • The two compact programs, translation ms (main runs 1 and 2 → this PR runs 1 and 2):
    • 56c0cd3b82a00c6e: 617, 708 → 241, 254
    • 958400d2caf07244: 573, 680 → 241, 257
  • The rest: the other programs, 95cc13288a27a96e included, are not compact here and stay within run-to-run noise. Summed over all 2,689 programs, translation time is noise-dominated with 8 threads, so I'd only claim the per-program numbers above.

AI use: Claude Code (Claude Opus 5.5) built the binary, ran the measurements and wrote this; I posted it.

<!-- greyfinch-sync:ivall/xcl:comment:7198910780 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7198910780). Originally posted by [bielfreedom](https://github.com/bielfreedom) on 2026-11-26T17:22:38Z. --- **AMD Windows, translation side only, for #2766: on an RX 9070 XT this PR leaves all 2,689 retail compute programs byte for byte the same as `main` `b49be18`. It makes the two that take the compact form translate about 2.5× faster.** - **Setup:** RX 9070 XT, Ryzen 7 7700, 32 GB RAM, Windows 11, release. This PR merged onto `main` `b49be18`, with a local patch in `xcl shaders` that writes each program's DXIL size and translation time. `xcl shaders <retail shaders.rpf> --precompile --only cs`, `XCL_DIRECT_DXIL=1`, switch windows, a fresh translation cache per run, 8 threads. Two runs per build. - **DXIL:** 885,910,100 B on both, 0 programs changed. - **The two compact programs, translation ms (`main` runs 1 and 2 → this PR runs 1 and 2):** - `56c0cd3b82a00c6e`: 617, 708 → 241, 254 - `958400d2caf07244`: 573, 680 → 241, 257 - **The rest:** the other programs, `95cc13288a27a96e` included, are not compact here and stay within run-to-run noise. Summed over all 2,689 programs, translation time is noise-dominated with 8 threads, so I'd only claim the per-program numbers above. **AI use:** Claude Code (Claude Opus 5.5) built the binary, ran the measurements and wrote this; I posted it.
Aniseto commented 2026-11-26 17:37:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-26T17:37:35Z.


Ran the compact-DXIL emission tests at f276e58d on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib gpu::dxil::compact_tests -- --test-threads=1
13 passed; 0 failed; 0 ignored; 0 measured; 1323 filtered out      (exit 0)

All 13 pass here, including the GPU tests in that module that compile and run compact DXIL on the real adapter with DXC 1.9.2609.5. The thread has an independent Windows/NVIDIA report and AMD reports, but no 5070 Ti; this adds a Blackwell desktop datapoint for the guard around reload::analyze. I did not repeat the author's release timing probe.

Not tested: the synthetic 28,673-instruction timing probe, the full workspace suite, a paired smoke run, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7199346455 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7199346455). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-26T17:37:35Z. --- Ran the compact-DXIL emission tests at `f276e58d` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib gpu::dxil::compact_tests -- --test-threads=1 13 passed; 0 failed; 0 ignored; 0 measured; 1323 filtered out (exit 0) ``` All 13 pass here, including the GPU tests in that module that compile and run compact DXIL on the real adapter with DXC 1.9.2609.5. The thread has an independent Windows/NVIDIA report and AMD reports, but no 5070 Ti; this adds a Blackwell desktop datapoint for the guard around `reload::analyze`. I did not repeat the author's release timing probe. Not tested: the synthetic 28,673-instruction timing probe, the full workspace suite, a paired smoke run, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
KOLESNiii commented 2026-11-26 17:50:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T17:50:21Z.


@throny thanks for the triage. The fix is the same as #2805's, but I'd ask to keep this one:

  • I opened #2746 at 09:47 UTC with the problem and this fix in its title, and #2805 links to it. I opened this PR at 11:15 UTC, about three hours before #2805 (14:04 UTC), so it was already open when #2805 was.
  • I've added #2805's one extra piece, its comparison test, to this PR as a separate commit (5ef14a32), with @CryingLaughing as co-author. This PR now has everything #2805 has.
  • It also has more independent verification: full suites on an RTX 3090 and an RTX 3080 Ti, byte-identical output on retail shaders with timings, and an AMD RX 9070 XT run showing all 2,689 retail compute programs unchanged.

@CryingLaughing your test is credited here. If you're fine with it, closing #2805 in favour of this PR would save the maintainers a review. I'll add a note for D129 in #1607.

<!-- greyfinch-sync:ivall/xcl:comment:7199745031 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7199745031). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-26T17:50:21Z. --- @throny thanks for the triage. The fix is the same as #2805's, but I'd ask to keep this one: - I opened #2746 at 09:47 UTC with the problem and this fix in its title, and #2805 links to it. I opened this PR at 11:15 UTC, about three hours before #2805 (14:04 UTC), so it was already open when #2805 was. - I've added #2805's one extra piece, its comparison test, to this PR as a separate commit (`5ef14a32`), with @CryingLaughing as co-author. This PR now has everything #2805 has. - It also has more independent verification: full suites on an RTX 3090 and an RTX 3080 Ti, byte-identical output on retail shaders with timings, and an AMD RX 9070 XT run showing all 2,689 retail compute programs unchanged. @CryingLaughing your test is credited here. If you're fine with it, closing #2805 in favour of this PR would save the maintainers a review. I'll add a note for D129 in #1607.
Decodere commented 2026-11-26 20:44:11 +00:00 (Migrated from github.com)

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


Independent desktop NVIDIA verification of PR #2766 at head 5ef14a321b15ff9baca95345c39a901a7307c4d7 (2 commits f276e58d -> 5ef14a32 on merge-base b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, pre-#2555 ancestor of main; parent f276e58d0fd307e0654aae45fe664eee956f0818).

Environment

  • GPU: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, Wave32-only Ada), driver 32.0.16.2114 (NVIDIA 621.14, WDDM 3.2)
  • CPU / RAM / OS: Intel Core i5-11400F (6C / 12T), 32 GB RAM (31.9 GiB usable), Windows 11 Home 26200 (Developer Mode off)
  • Toolchain: rustc 1.100.0 (0ef1bc386 2026-11-09) MSVC, DXC 1.9.2609.5, --release

Targeted release tests & build (5ef14a32)

Command Result
cargo test --release -p xcl --lib scalar_load_compact_reload_comparison -- --nocapture 1 passed; 0 failed; 0 ignored; 1336 filtered out (0.01s)
cargo test --release -p xcl --lib gpu::dxil:: (3 consecutive runs) 185 passed; 0 failed; 3 ignored; 1149 filtered out × 3 (3.31s, 3.37s, 3.44s; 1 Wave64-only test self-skipped on Wave32-only RTX 4060)
cargo test --release -p xcl --lib gpu::recomp:: 401 passed; 0 failed; 20 ignored; 916 filtered out (5.03s; Wave64-only and #1426-refused subcases self-skipped as expected)
cargo build --release -p xcl --bin xcl Clean build (1m 12s, exit 0)

Paired quiet 60 s retail smoke (title: 29640639)

Merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB

PR #2766 (5ef14a321b15ff9baca95345c39a901a7307c4d7):

xcl-smoke v1
commit: 5ef14a321b15ff9baca95345c39a901a7307c4d7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1621 (PresentX 1621)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14011 MB

Runtime log observations (xcl.log)

  • 9220 log lines, 0 [ERROR] / device-removal / panic lines.
  • Final draw/memory telemetry in log: 19624 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample 14010 MB committed by the process; video memory 6116 MB local, 4682 MB non-local.

Limits of coverage

  • This verification exercised scalar_load_compact_reload_comparison, 3× gpu::dxil::, full gpu::recomp::, and a paired 60 s retail smoke (title: 29640639 with existing warm shader cache). It did not run a separate XCL_2746_* before/after compact-translation timing sweep or byte-identity diff against an exported baseline directory.
  • Wave64-only GPU subcases in gpu::dxil:: (dispatch_chain_native_wave64_builds_whole) and gpu::recomp:: self-skipped on the Wave32-only RTX 4060, and the existing #[ignore] dump/fuzz/benchmark tests remained ignored.
  • Frame-count delta vs. the cached merge-base smoke (1621 vs. 1518 frames) reflects normal single-run startup variance and is not attributed to this PR.

AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).

<!-- greyfinch-sync:ivall/xcl:comment:7203019794 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7203019794). Originally posted by [Decodere](https://github.com/Decodere) on 2026-11-26T20:44:11Z. --- Independent desktop NVIDIA verification of **PR #2766** at head `5ef14a321b15ff9baca95345c39a901a7307c4d7` (`2` commits `f276e58d -> 5ef14a32` on merge-base `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, pre-`#2555` ancestor of `main`; parent `f276e58d0fd307e0654aae45fe664eee956f0818`). ### Environment - **GPU:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, Wave32-only Ada), driver `32.0.16.2114` (NVIDIA `621.14`, WDDM 3.2) - **CPU / RAM / OS:** Intel Core i5-11400F (6C / 12T), 32 GB RAM (`31.9 GiB` usable), Windows 11 Home `26200` (Developer Mode off) - **Toolchain:** `rustc 1.100.0 (0ef1bc386 2026-11-09)` MSVC, DXC `1.9.2609.5`, `--release` ### Targeted release tests & build (`5ef14a32`) | Command | Result | | --- | --- | | `cargo test --release -p xcl --lib scalar_load_compact_reload_comparison -- --nocapture` | `1 passed; 0 failed; 0 ignored; 1336 filtered out` (`0.01s`) | | `cargo test --release -p xcl --lib gpu::dxil::` (3 consecutive runs) | `185 passed; 0 failed; 3 ignored; 1149 filtered out` × 3 (`3.31s`, `3.37s`, `3.44s`; `1` Wave64-only test self-skipped on Wave32-only RTX 4060) | | `cargo test --release -p xcl --lib gpu::recomp::` | `401 passed; 0 failed; 20 ignored; 916 filtered out` (`5.03s`; Wave64-only and `#1426`-refused subcases self-skipped as expected) | | `cargo build --release -p xcl --bin xcl` | Clean build (`1m 12s`, exit `0`) | ### Paired quiet 60 s retail smoke (`title: 29640639`) Merge-base (`b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`, cached baseline on the same machine): ``` xcl-smoke v1 commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1518 (PresentX 1518) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14018 MB ``` PR #2766 (`5ef14a321b15ff9baca95345c39a901a7307c4d7`): ``` xcl-smoke v1 commit: 5ef14a321b15ff9baca95345c39a901a7307c4d7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1621 (PresentX 1621) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14011 MB ``` ### Runtime log observations (`xcl.log`) - `9220` log lines, `0` `[ERROR]` / device-removal / panic lines. - Final draw/memory telemetry in log: `19624 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped)`; last memory sample `14010 MB committed by the process; video memory 6116 MB local, 4682 MB non-local`. ### Limits of coverage - This verification exercised `scalar_load_compact_reload_comparison`, 3× `gpu::dxil::`, full `gpu::recomp::`, and a paired 60 s retail smoke (`title: 29640639` with existing warm shader cache). It did not run a separate `XCL_2746_*` before/after compact-translation timing sweep or byte-identity diff against an exported baseline directory. - Wave64-only GPU subcases in `gpu::dxil::` (`dispatch_chain_native_wave64_builds_whole`) and `gpu::recomp::` self-skipped on the Wave32-only RTX 4060, and the existing `#[ignore]` dump/fuzz/benchmark tests remained ignored. - Frame-count delta vs. the cached merge-base smoke (`1621` vs. `1518` frames) reflects normal single-run startup variance and is not attributed to this PR. *AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).*
Kalmarv commented 2026-11-30 03:39:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Kalmarv on 2026-11-30T03:39:34Z.


Hey @KOLESNiii — we tested this stacked with the Direct DXIL compile speedup batch and the Windows build/tests are green, it's just blocked on the PR description check (missing/stale xcl-smoke or required sections). If you update the description we can get it queued in #3041!

<!-- greyfinch-sync:ivall/xcl:comment:7268084820 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7268084820). Originally posted by [Kalmarv](https://github.com/Kalmarv) on 2026-11-30T03:39:34Z. --- Hey @KOLESNiii — we tested this stacked with the Direct DXIL compile speedup batch and the Windows build/tests are green, it's just blocked on the `PR description` check (missing/stale `xcl-smoke` or required sections). If you update the description we can get it queued in #3041!
KOLESNiii commented 2026-11-30 14:02:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-30T14:02:28Z.


@Kalmarv the regression smoke is done and this is unblocked. Both xcl-smoke blocks are in Regression run: main 9dfbe3ea and this PR's head 2e146f94, same title, 60 s, RTX 2070 SUPER. Neither run had a device removal or a crash. The PR run showed 1278 frames against main's 1591 and a peak commit of 15061 MB against 17442 MB. Both required checks (CI, PR description) are green.

— Claude Code (Claude Opus 5.5), on behalf of the PR author

<!-- greyfinch-sync:ivall/xcl:comment:7280742462 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7280742462). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-30T14:02:28Z. --- @Kalmarv the regression smoke is done and this is unblocked. Both `xcl-smoke` blocks are in **Regression run**: `main` `9dfbe3ea` and this PR's head `2e146f94`, same title, 60 s, RTX 2070 SUPER. Neither run had a device removal or a crash. The PR run showed 1278 frames against `main`'s 1591 and a peak commit of 15061 MB against 17442 MB. Both required checks (`CI`, `PR description`) are green. — Claude Code (Claude Opus 5.5), on behalf of the PR author
BBareth commented 2026-12-01 07:30:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:30:31Z.


merge-check claim
head: 2e146f9403

<!-- greyfinch-sync:ivall/xcl:comment:7304140030 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7304140030). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T07:30:31Z. --- merge-check claim head: 2e146f94038bb19b1acaab3a4313feceea39d513
BBareth commented 2026-12-01 07:47:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-12-01T07:47:11Z.


merge-check
base: 493dbd3dd0
head: 2e146f9403
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test scalar_load_compact_reload_comparison ran and passed (its benchmark and file-output parts are off unless XCL_2746_* variables are set; they were not set).
review: no blocking finding; two files (+95/-2), every line read. translate_on_this_thread no longer runs reload::analyze when a compact plan was chosen. I checked the claim on the merge result: reloads is read only in the per-block loop that is filtered by plan.is_none(), so the compact path never used the result and the emitted DXIL cannot change. The test writes files only into a directory named by XCL_2746_DXIL_DIR. Not measured here: the translation time saved.
performance: none by default; saves one analysis pass for programs that take the compact form (not measured here).
verdict: safe to merge
hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.

<!-- greyfinch-sync:ivall/xcl:comment:7304477438 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7304477438). Originally posted by [BBareth](https://github.com/BBareth) on 2026-12-01T07:47:11Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: 2e146f94038bb19b1acaab3a4313feceea39d513 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2901 passed, 0 failed, 51 ignored; 28 SKIPPED lines, as on the base; failing: none. The base alone, same machine, same commit: 2900 passed, 0 failed, 51 ignored, 28 SKIPPED lines (22 no wave64, 2 no heap windows, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 cannot disable the driver cache). The new test `scalar_load_compact_reload_comparison` ran and passed (its benchmark and file-output parts are off unless `XCL_2746_*` variables are set; they were not set). review: no blocking finding; two files (+95/-2), every line read. `translate_on_this_thread` no longer runs `reload::analyze` when a compact plan was chosen. I checked the claim on the merge result: `reloads` is read only in the per-block loop that is filtered by `plan.is_none()`, so the compact path never used the result and the emitted DXIL cannot change. The test writes files only into a directory named by `XCL_2746_DXIL_DIR`. Not measured here: the translation time saved. performance: none by default; saves one analysis pass for programs that take the compact form (not measured here). verdict: safe to merge hardware / tool and model: RTX 5070 Ti 16 GB, driver 621.24 (32.0.16.2124); i7-12700K; Windows 11 26200. Claude Code, Claude Fable 5.2 read the diff, ran the build and the suite and wrote this check.
Foniass commented 2026-12-01 08:54:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:54:41Z.


Triage (#1607) – head 2e146f9

#2805 made the same kernel.rs change (no reload::analyze when a compact plan is used) with the same test and was closed. In translate_on_this_thread, reloads is read only in the non-compact block loop, so skipping the analysis for the compact form does not change the output. Not on main yet (main still runs reload::analyze unconditionally). scalar_load_compact_reload_comparison is mostly a benchmark/fixture behind XCL_2746_* variables. By default it checks only that the two emission paths differ, so it would not fail without the change. Acceptable for a pure performance change.
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:7305948106 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7305948106). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:54:41Z. --- **Triage (#1607)** – head 2e146f9 #2805 made the same `kernel.rs` change (no `reload::analyze` when a compact plan is used) with the same test and was closed. In `translate_on_this_thread`, `reloads` is read only in the non-compact block loop, so skipping the analysis for the compact form does not change the output. Not on main yet (main still runs `reload::analyze` unconditionally). `scalar_load_compact_reload_comparison` is mostly a benchmark/fixture behind `XCL_2746_*` variables. By default it checks only that the two emission paths differ, so it would not fail without the change. Acceptable for a pure performance change. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
KOLESNiii commented 2026-12-02 14:39:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-02T14:39:21Z.


Thanks @Kalmarv, @BBareth (merge check) and @Foniass. Rebased onto main df0cfef6 with no conflicts; new head 3fff5bdd. The smoke runs (main and this head) and the suite are queued, and the description will get both blocks and the counts when they finish, which should clear PR description. On the test: as Foniass says, by default scalar_load_compact_reload_comparison checks only that the two emission paths differ, so it would not fail without the change. The change is a skipped analysis whose result the compact path never reads, so its output cannot differ. A test that would fail would have to count reload::analyze calls, which needs instrumentation that this PR does not otherwise add.

— Claude Code (Claude Opus 5.5), on behalf of the PR author

<!-- greyfinch-sync:ivall/xcl:comment:7348914849 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7348914849). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-02T14:39:21Z. --- Thanks @Kalmarv, @BBareth (merge check) and @Foniass. Rebased onto `main` df0cfef6 with no conflicts; new head `3fff5bdd`. The smoke runs (main and this head) and the suite are queued, and the description will get both blocks and the counts when they finish, which should clear `PR description`. On the test: as Foniass says, by default `scalar_load_compact_reload_comparison` checks only that the two emission paths differ, so it would not fail without the change. The change is a skipped analysis whose result the compact path never reads, so its output cannot differ. A test that would fail would have to count `reload::analyze` calls, which needs instrumentation that this PR does not otherwise add. — Claude Code (Claude Opus 5.5), on behalf of the PR author
Foniass commented 2026-12-02 14:40:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T14:40:37Z.


Follow-up review (head 3fff5bdd, since 2e146f9, diff read, not a merge-check; checks red):

  • Earlier points: unchanged; git range-diff shows both commits the same apart from context where main moved under them (the new loop_passes line next to this PR's reload::analyze gate); this push is a rebase.

New: none.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7348950339 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2766#issuecomment-7348950339). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T14:40:37Z. --- Follow-up review (head 3fff5bdd, since 2e146f9, diff read, not a merge-check; checks red): - **Earlier points:** unchanged; `git range-diff` shows both commits the same apart from context where `main` moved under them (the new `loop_passes` line next to this PR's `reload::analyze` gate); this push is a rebase. New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
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/2766:upstream-pr/2766'
git switch 'upstream-pr/2766'

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/2766'
git switch 'upstream-pr/2766'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2766'
git switch 'upstream-pr/2766'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2766'
git switch 'main'
git merge --squash 'upstream-pr/2766'
git switch 'main'
git merge --ff-only 'upstream-pr/2766'
git switch 'main'
git merge 'upstream-pr/2766'
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!2756
No description provided.