Skip to content

[OPT] fix loop with recursive types in trim pass#6070

Merged
s-perron merged 1 commit intoKhronosGroup:mainfrom
Keenuts:fix-recursive-types
Mar 27, 2025
Merged

[OPT] fix loop with recursive types in trim pass#6070
s-perron merged 1 commit intoKhronosGroup:mainfrom
Keenuts:fix-recursive-types

Conversation

@Keenuts
Copy link
Copy Markdown
Contributor

@Keenuts Keenuts commented Mar 27, 2025

When a type was recursive (or for the matter any instruction ID usage), the DFSWhile implementation would loop indefinitely. Added a history map to keep track of the visited instructions.

Required for microsoft/DirectXShaderCompiler#7163

When a type was recursive (or for the matter any instruction ID
usage), the DFSWhile implementation would loop indefinitely.
Added a history map to keep track of the visited instructions.

Required for microsoft/DirectXShaderCompiler#7163

Signed-off-by: Nathan Gauër <[email protected]>
@s-perron s-perron merged commit 393d5c7 into KhronosGroup:main Mar 27, 2025
22 checks passed
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