Skip to content

Conversation

@frasercrmck
Copy link
Contributor

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.

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.
@frasercrmck frasercrmck added the libclc libclc OpenCL library label Nov 12, 2024
@frasercrmck frasercrmck requested a review from arsenm November 12, 2024 11:44
@frasercrmck frasercrmck merged commit a552487 into llvm:main Nov 12, 2024
10 checks passed
@frasercrmck frasercrmck deleted the libclc-clc-remquo-vec3 branch November 12, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libclc libclc OpenCL library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants