KhronosGroup / SPIRV-Tools

Apache License 2.0
1.09k stars 559 forks source link

opt: Fix array copy propagation of access chain pointers #5853

Closed cassiebeckley closed 1 month ago

cassiebeckley commented 1 month ago

5827 is broken for situations where a loaded value is stored to a pointer resulting from an OpAccessChain. Traverse access chains to find the original OpVariable to add to the worklist.

For https://github.com/microsoft/DirectXShaderCompiler/issues/6960