Skip to content

Execution Tests: Prevent sinking in long vector derivative hlk#8054

Merged
alsepkow merged 2 commits into
microsoft:mainfrom
alsepkow:user/alsepkow/FixDerivativeSinkingInTests
Jan 13, 2026
Merged

Execution Tests: Prevent sinking in long vector derivative hlk#8054
alsepkow merged 2 commits into
microsoft:mainfrom
alsepkow:user/alsepkow/FixDerivativeSinkingInTests

Conversation

@alsepkow
Copy link
Copy Markdown
Contributor

This PR adds a workaround to the hlk long vector derivative tests to prevent sinking of the derivative call into the conditional. This is a known bug in DXC that will not be fixed for 6.9 release.
DXC bug tracked via issue #8001

Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though the result of the wave op is unused, it appears that it still prevents ddx from being moved, and the compiler doesn't know it can remove the wave op, so as a workaround, that should be ok for now. It just might be more fragile if the compiler could DCE the wave op in the future, which would be legal.

@alsepkow
Copy link
Copy Markdown
Contributor Author

alsepkow commented Jan 13, 2026 via email

@alsepkow alsepkow merged commit 9fdd756 into microsoft:main Jan 13, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Jan 13, 2026
@alsepkow alsepkow deleted the user/alsepkow/FixDerivativeSinkingInTests branch January 31, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants