mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1272] shader: omit native subgroup votes for dead scalar conditions #1304
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1304
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1272
Author: @Kadamitas
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:perf/native-dead-scc-votes📝 Commits (1)
e7e359fshader: skip native subgroup votes for dead SCC writes📊 Changes
6 files changed (+33 additions, -9 deletions)
View changed files
📝
docs/design.md(+1 -0)📝
tests/semantic/test_salu_b32_lane_masks.py(+22 -0)📝
tests/semantic/test_wave64_emulate_opt.py(+3 -4)📝
tests/semantic/test_wrexec_b32.py(+1 -0)📝
tests/test_translate.py(+1 -1)📝
tools/rdna2spirv.py(+5 -4)📄 Description
Claimed in the coordination issue as: dead scalar condition votes
What and why
Use the existing scalar condition liveness analysis for native wave32 and wave64. When the shader overwrites the condition before another instruction reads it, omit the vote that would compute that condition. Preserve the mask result and keep the vote at control-flow joins where it remains live.
Tested
GPUs tested: n/a (translator and semantic tests)
AI-assisted: yes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.