Repository navigation
Conversation
…e branch (xcl-dev#701) In the first structured form, a conditional jump inside the if branch of an if / else to the start of the else branch ended at the end of the if branch (`hi`), so it was taken for a skip over the rest of the branch: an if with no else, whose body included the s_branch over the else. The jump then fell into the code after the else and the else branch never ran. In an if branch with an else (exit set), a jump to `hi` is raised as a skip flag instead; the if / else is then rejected as before and the else runs under the flag. The test runs the program on the GPU in the structured form and in the pc chain. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… it (xcl-dev#701) The first structured form guards the items after a forward jump with `if (!(skip flag))`, one guard for as long as the set of pending flags stays the same. A second jump to a target whose flag is already pending (two breaks to the same block) leaves the set as it is, so the guard stayed open and the items after the jump ran although it was taken. Close the guard after such a jump; the next item opens a new one that tests the flags again. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Tested on Windows 11 + NVIDIA GeForce RTX 3060 Ti (8 GB, wave32). Tested
Regression run ( main ( PR #729 ( Not tested: Debug build, AI use: Antigravity ( |
|
Test report for Tested
16 test binaries: 686 passed, 1 failed, 41 ignored. Same machine, This PR's tests:
Failures:
16 test binaries instead of SKIPPED (no wave64 on this GPU): AI use: Claude Code (Claude Opus 5.5) ran the builds and tests and wrote this report from their output. |
|
Verified on an RTX 4070 SUPER with the #701 harness (QemmHD/xcl AI-assisted (Claude Code, Claude Opus 5.5). |
Part of #701 (shape 1). Stacked on #728; only the top commit belongs here. The first structured form guards the items after a forward jump with
if (!(skip flag)), one guard for as long as the set of pending flags stays the same. A second jump to a target whose flag is already pending (two breaks to the same block) leaves the set as it is, so the guard stays open and the items after the jump run although it was taken. The guard is now closed after such a jump; the next item opens a new one that tests the flags again.What is in it
crates/xcl/src/gpu/recomp/mod.rs(emit_structured): close the open guard when an item raises a target that is already pending.crates/xcl/src/gpu/recomp/tests.rs:gpu_a_second_jump_to_a_pending_target_skips_what_follows: a loop with two breaks to the same block and an if before the latch, run on the GPU in the structured form and in thepcchain, five (s10, s11, s12) combinations.Tested
x86_64-pc-windows-gnullvm(llvm-mingw 20261117), DXC 1.9.2609.5, debugstructured: true, s10 = 1, s11 = 0, s12 = 1:(1, 1, 0), want(0, 1, 0)) and passes with itcargo test -p xcl --lib -- --test-threads=4(with DXC): 659 passed, 3 failed, 21 ignored;maingives 657 passed and the same 3 failures (see Recompiler: a jump from the if branch to its else branch runs the else branch (#701) #728:hle::d3d12xtests that pass when run alone)Regression run
None: I have no title for
scripts/smoke.ps1. This changescrates/xcl/src, so the twoxcl-smokeblocks have to come from someone with a title.main:
not run
PR:
not run
Not tested
scripts/smoke.ps1; wave64; AMD; MSVC; the rest of the workspace on this branch}/ guard reopening changes the HLSL of shaders in a way that matters for compile time; I did not measure itAI use