deduplicate equivalent wrexec loop mask phis #625
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!625
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/wrexec-mask-phis"
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?
Not yet run in-game on this Darner branch (synthetic wave32 and wave64 unit tests run on this revision; previously verified on RTX 3080 SM86 in a downstream fork).
What it changes
When a guarded s_andn2_wrexec descriptor waterfall loop misses Tracer::waterfall_shape (for example because of extra work in the loop body) and enters with a non-constant EXEC mask (so neither value = true nor value = false holds across the entry reach), Lanes::join creates two distinct PhiJoin atoms: one for EXEC and one for the saved remaining-mask SGPR initialized from EXEC and updated identically by the same s_wrexec instruction on the back-edge. Because the two Atom::Phi nodes differ, the general BDD waterfall recognizer cannot prove the retry mask equals waiting-and-not-selected and fails to recognize the waterfall.
This change:
How it was tested
4f1b93c(based onc8258f9)Checklist
Checked for overlap
[pr-fix][shaders] deduplicate equivalent wrexec loop mask phisto deduplicate equivalent wrexec loop mask phisTest needed — commit
4f1b93c0; what to check:When a guarded s_andn2_wrexec descriptor waterfall loop misses Tracer::waterfall_shape (for example because of extra work in the loop body) and enters with a non-constant EXEC mask (so neither value = true nor value = false holds across the entry reach), Lanes::join creates two distinct PhiJoin atoms: one for EXEC and one for the saved remaining-mask SGPR initialized from EXEC and updated identically by the same s_wrexec instruction on the back-edge. Because the two Atom::Phi nodes differ, the general BDD waterfall recognizer cannot prove the retry mask equals waiting-and-not-selected and fails to recognize the waterfall.
This change:
Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.