DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Add a flag for the upstream global reassociation algorithm change

Open lizhengxing opened this issue 1 year ago • 1 comments

This PR (https://github.com/microsoft/DirectXShaderCompiler/pull/6598) pulls the upstream global reassociation algorithm change in DXC and can reduce redundant calculations obviously.

However, from the testing result of a large offline suite of shaders, some shaders got worse compilation results and couldn't benefit from this upstream change.

This PR adds a flag for the upstream global reassociation change. It would be easier to roll back if a shader get worse compilation result due to this upstream change.

This is part 2 of the fix for #6593.

lizhengxing avatar May 15 '24 18:05 lizhengxing

:white_check_mark: With the latest revision this PR passed the C/C++ code formatter.

github-actions[bot] avatar May 15 '24 18:05 github-actions[bot]