KhronosGroup / KhronosGroup/SPIRV-Tools
Opt: Optimize Private variable references
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
Currently, spirv-opt only optimizes references for function scope variables. However, there exist shaders where optimizing Private (static) variables can have benefits for following optimizations such as dead branch elimination, etc.
Contributor guide
Research direction
Start by tracing the Private variable reference optimization path in spirv-opt and compare it with the existing function-scope variable handling. Investigate how the result affects later optimizations such as dead branch elimination. Done means Private (static) variable references are optimized without changing shader behavior, with coverage for the reported shader cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100