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

Fix a misfiring assert due to unused static const involving matrix type #3582

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

vcsharma
Copy link
Contributor

A global static const (involving aggregate type) gets replaced in SROA Param HLSL pass if there are valid users. However, if it is dead, then it gets optimized away later in Global Variable Optimizer (globalopt) pass. This PR updates a misfiring assert in HLMatrixLowering pass to cover the case where a constexpr with no users is allowed as it gets trivially deleted in this pass.

Fixes #3579

@AppVeyorBot
Copy link

@vcsharma vcsharma merged commit 6ad5656 into microsoft:master Mar 15, 2021
@vcsharma vcsharma deleted the matrix_as_assert branch March 15, 2021 18:02
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.

dxc asserts when using array of matrix type for const init
3 participants