Repository navigation
opt: dissolve OpCopyLogical of OpCompositeConstruct in simplification - #6746
Merged
s-perron merged 1 commit intoJul 14, 2026
Merged
Conversation
SteveUrquhart
force-pushed
the
fold-copylogical-of-composite
branch
from
June 16, 2026 22:05
50af2e5 to
422ef27
Compare
s-perron
reviewed
Jun 17, 2026
s-perron
left a comment
Collaborator
There was a problem hiding this comment.
Generally looks good. However, we usually assume the spir-v is valid coming into the pass is valid, so there is not need to handle cases where it is not. Those can be asserts. The exception to that is if this is part of DXC legalization. DXC is generating invalid code, and we want to handle it to eventually make it valid.
SteveUrquhart
force-pushed
the
fold-copylogical-of-composite
branch
2 times, most recently
from
June 18, 2026 21:56
ab5f507 to
8f3ac5d
Compare
SteveUrquhart
force-pushed
the
fold-copylogical-of-composite
branch
from
June 29, 2026 23:38
8f3ac5d to
d9d0319
Compare
s-perron
approved these changes
Jul 8, 2026
Collaborator
|
@SteveUrquhart Please merge the latest main into your branch, and fix the formatting. The only CI failure that is related to this change is the formatting one. |
auto-merge was automatically disabled
July 13, 2026 18:53
Head branch was pushed to by a user without write access
SteveUrquhart
force-pushed
the
fold-copylogical-of-composite
branch
from
July 13, 2026 18:53
d9d0319 to
4bc6f4d
Compare
Contributor
Author
|
@s-perron , this should be good |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As described in microsoft/DirectXShaderCompiler#8382, this PR adds a new folding rule to deal with the new SPIR-V the optimizer is receiving from dxc since microsoft/DirectXShaderCompiler#7530. By rewriting
as
...we can continue to legalize the technically-invalid
...which dxc has always emitted.