diff options
| author | davli-nv <davli@nvidia.com> | 2025-10-16 18:22:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-17 01:22:39 +0000 |
| commit | ff064b9a0f1316007f46710432f854777a520fdf (patch) | |
| tree | 54a469024b8b7fe748223c67d38669685ecb55e0 /source/slang/slang-options.cpp | |
| parent | 74d93c0fecdac121320ffac16352979ad4b16c45 (diff) | |
Fix infinite loop in SPIRVLegalizationContext::processWorkList (#8712)
When slangc is invoked with -g, a source shader that has static infinite
loop can generate IR that have branch to a block that contains a branch
to the first block that contains the first branch, resulting in infinite
loop.
Change SPIRVLegalizationContext::processWorkList to only add branch
target to work list via its parent, this avoids the infinite loop above.
Also change addToWorkList to stop addUsersToWorkList, users should be
added explicitly by logic for specific insts.
Add regression test as tests/spirv/infinite-loop.slang
Fixes #8669
Diffstat (limited to 'source/slang/slang-options.cpp')
0 files changed, 0 insertions, 0 deletions
