On Fri Mar 22 22:01:20 2024 +0000, Francisco Casas wrote:
We are currently lowering all dereferences into a single offset node and a regset (which is used to discern when variables belong to multiple regsets). Copy propagation also relies on this. Dereferences to pixel shaders and vertex shaders are created on the instructions originated from prepend_uniform_copy(), when the original uniform is copied into the temp. It can happen merely by declaring PixelShader or VertexShader variables
PixelShader ps1; float4 main() : sv_target { return 0; }
Shouldn't DCE be killing off those dereferences?