Skip to content

Translate OpUndef to poison instead of undef in SPIR-V reader#3661

Open
aobolensk wants to merge 1 commit intoKhronosGroup:mainfrom
aobolensk:undef-to-poison
Open

Translate OpUndef to poison instead of undef in SPIR-V reader#3661
aobolensk wants to merge 1 commit intoKhronosGroup:mainfrom
aobolensk:undef-to-poison

Conversation

@aobolensk
Copy link
Contributor

@aobolensk aobolensk commented Mar 17, 2026

LLVM is migrating from undef to poison values. Update the OpUndef translation in SPIRVReader to produce PoisonValue instead of UndefValue.

Enable round-trip for test/var_undef.ll where the only difference between the approaches was related to undef vs poison

@aobolensk
Copy link
Contributor Author

@MrSidims please, take a look

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.

1 participant