Recompiler: skip reload analysis for compact emission #2805
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2805
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2805"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CryingLaughing on GitHub · 2026-11-26 14:04 UTC · original
CryingLaughing:perf/skip-compact-reload-analysis→main· +95 −3 · 2 files · 1 commits · openPart of #2746.
The direct translator ran the scalar-load availability pass even when a compact emission plan had already been selected. The compact emitter never reads its result. Guard the analysis with the same ordinary-emission condition that governs its use.
What is in it
Tested
Base
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. Patch526f097fd99dad401955a05abe3a1ac17c2b7af3.Windows 11 25H2 build 26200.9974, Intel Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, and DXC 1.8.2502.11.
Separate release test binaries passed 1/1 each. After one warmup, the median whole compact CPU translation across three samples moved from 968.219 ms to 44.335 ms. The ordinary kernel, forced compact kernel, and automatically compacted compute outputs matched the baseline byte for byte.
cargo build --workspace --locked -j 4passed.cargo test --workspace --locked -j 4 -- --test-threads=4 --show-outputreported 1,436 passed, 0 failed, 47 ignored across 37 harnesses, including 29 explicit capability skips in the pass total.Independent Windows run by ettehn on a Ryzen 9 8945HX with Rust 1.97.1 MSVC. Six separate release test processes passed. The median across nine timed samples per revision fell from 1,017.296 ms to 41.299 ms, and all three generated shaders matched byte for byte. The comparison used the same synthetic 16,385-block input. Independent benchmark and commands
Regression run
Matched retail smoke runs are pending.
Not tested
@ettehn on GitHub · 2026-11-26 14:18 UTC · original
Independent AMD CPU result for
526f097fd99dad401955a05abe3a1ac17c2b7af3vsb49be1836844fe0b0cdb3211dce3cb7fb4e21ac7. The PR checkout was clean. I copied only the benchmark test and its fixture into the base. Each had its own release target directory.Ryzen 9 8945HX, Windows 11 build 26200, Rust 1.97.1 MSVC. Built each with
cargo test --release --locked --offline -p xcl --lib -j 3 --no-run, then ran onlygpu::dxil::compact_tests::scalar_load_compact_reload_comparisonwithXCL_2746_BENCH=1in six separate processes in base/head/head/base/base/head order. Each process ran one warmup and three timed translations. All six test runs passed.This measures CPU translation for the generated 16,385-block input. It does not measure GPU PSO compilation, retail load time, or frame rate.
OpenAI Codex assisted with the benchmark and verification. The exact model identifier was unavailable in this session.
@Anon64 on GitHub · 2026-11-26 14:44 UTC · original
Regression run of
526f097on a newer retail title: no device removal, no crash, frames and commit within the limits.Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of main
b49be18(this PR's base) and of this PR's exact head,scripts/smoke.ps1 -Game <title>for 60 s withXCL_NETWORK=0and A pressed every 4 s from 20 s. Main ran before and after a batch of 11 PRs and peaked at 23,855 and 23,844 MB, so the baseline held steady over the batch.main:
this PR:
99 % of main's frames, 104 % of its peak commit. One run each.
Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD.
AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.