Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPT] Add removed unused interface var pass to legalization passes #5579

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

s-perron
Copy link
Collaborator

DXC does not do a good job of recognizing which variables need to be
on the entry point for which functions. This is because it does not
want to have to walk the call tree to determine which instructions
are reachable from which entry points.

This is also useful if the same input variable gets used from two
different shader, but the uses in one get optimized away.

Will parially fix
microsoft/DirectXShaderCompiler#4621. Will not
fix code compiled with -fcgl.

DXC does not do a good job of recognizing which variables need to be
on the entry point for which functions. This is because it does not
want to have to walk the call tree to determine which instructions
are reachable from which entry points.

This is also useful if the same input variable gets used from two
different shader, but the uses in one get optimized away.

Will parially fix
microsoft/DirectXShaderCompiler#4621. Will not
fix code compiled with -fcgl.
@s-perron s-perron enabled auto-merge (squash) February 14, 2024 17:31
@s-perron s-perron merged commit 7604147 into KhronosGroup:main Feb 14, 2024
23 of 24 checks passed
@s-perron s-perron deleted the dxc4621 branch February 14, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants