llvm-project
a5524878 - [libclc] Avoid using undefined vector3 components (#115857)

Commit
1 year ago
[libclc] Avoid using undefined vector3 components (#115857) Using '.hi' on a vector3 is technically allowed by the spec and is treated as a 4-element vector with an "undefined" w component. However, it's more undef/poison code for the compiler to process and remove. We can easily avoid it with a dedicated macro.
Author
Parents
Loading