Shader tests: pin IR reachability and PHI invariants #1619
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1619
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1619"
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?
@ArnabSaga on GitHub · 2026-11-24 19:52 UTC · original
ArnabSaga:test/1242-bt002-ir-invariants→main· +213 −0 · 1 files · 1 commits · openSummary
Adds seven synthetic regression and characterization tests to verify
CFG reachability, SSA construction, and PHI invariants in the shader IR.
During an independent investigation of VIC-BT-002, I found that the
reported failure mechanism does not reproduce on the current baseline.
The GFX10 decoder follows control-flow reachability and does not decode
instructions skipped by unconditional branches. Consequently, the
reported unreachable predecessors do not enter SSA construction through
the proposed failure path.
This PR preserves the existing behavior through targeted tests rather
than introducing an unnecessary production correction.
Coverage
The shared invariant helper additionally verifies:
Verification
Tested against baseline
ffe310e:git diff --check: passed.A separate bounded investigation of 937,420 synthetic programs
found no panics, unreachable IR blocks, or surviving NONE values
among successful builds.
Scope
Limitations
Verification used Rust 1.98.1 with GNU/MinGW.
MSVC and full workspace CI parity remain unverified.
AI-assisted investigation and testing using synthetic inputs only.
Refs #1242 (VIC-BT-002).
This PR does not claim to fix VIC-BT-002. It adds characterization
coverage for the existing compiler invariants.
@Marvisak on GitHub · 2026-11-25 01:32 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-shader/src/ir.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
@Headache3318 on GitHub · 2026-11-25 01:42 UTC · original
Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head
1f47ee7applied cleanly onto currentmainccfb029.cargo test -p victory-shader --locked: 103 passed, 0 failed, 1 ignored. All tests pass, including the 7 new IR reachability/PHI invariants tests.cargo clippy -p victory-shader --all-targets -- -D warnings: 2 pre-existing unused-import errors in test code (fail identically on mainccfb029). The PR introduces no new clippy warnings.Not tested: Windows MSVC build, the title itself. AI-assisted.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.