KhronosGroup / KhronosGroup/SPIRV-Tools
Opt: Optimize loads/stores through nested structs
Open
component:optimization
enhancement
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 709
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 28
Description
When glslang stops flattening structs with opaques types, we will need to optimize nested structs as we now optimize non-nested structs.
See hlsl.flattenSubset.frag test in glslang.
Original report from @johnkslang
I claim this issue.
Contributor guide
Research direction
Start with the hlsl.flattenSubset.frag test in glslang and inspect how SPIRV-Tools currently optimizes loads and stores for non-nested structs. Determine the expected behavior once nested structs with opaque types are preserved, then verify that the corresponding nested operations are optimized and that the test demonstrates the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100