Skip to content

spirv-opt: Run tests second time with lower max id bound#6308

Closed
s-perron wants to merge 1 commit intoKhronosGroup:mainfrom
s-perron:id_overflow_tests
Closed

spirv-opt: Run tests second time with lower max id bound#6308
s-perron wants to merge 1 commit intoKhronosGroup:mainfrom
s-perron:id_overflow_tests

Conversation

@s-perron
Copy link
Collaborator

@s-perron s-perron commented Sep 8, 2025

The SinglePassRunAndCheck function duplicated logic from
SinglePassRunAndDisassemble. This change refactors the former to call the
latter, simplifying the implementation and improving maintainability.

This allows us to have a central place where we can run tests a second
time with a lower id bound that will guarentee an id overflow. We can
test that the pass does not crash.

This does not necessarily cover all code paths, but should cover most.

@Keenuts
Copy link
Contributor

Keenuts commented Sep 18, 2025

What's the status of this PR?

@s-perron
Copy link
Collaborator Author

Still a draft. I have a lot more passes to fix up before the tests will pass with this change.

The SinglePassRunAndCheck function duplicated logic from
SinglePassRunAndDisassemble. This change refactors the former to call the
latter, simplifying the implementation and improving maintainability.

This allows us to have a central place where we can run tests a
second time with a lower id bound that will guarentee an id overflow. We
can test that the pass does not crash.

This does not necessarily cover all code paths, but should cover most.
@s-perron s-perron closed this Nov 27, 2025
@s-perron s-perron deleted the id_overflow_tests branch November 27, 2025 19:45
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.

3 participants