Skip to content

[libclc] Optimize CLC vector relational builtins #124537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

frasercrmck
Copy link
Contributor

Clang knows how to perform relational operations on OpenCL vectors, so we don't need to use the Clang builtins. The builtins we were using didn't support vector types, so we were previously scalarizing.

This commit generates the same LLVM fcmp operations as before, just without the scalarization.

Clang knows how to perform relational operations on OpenCL vectors, so
we don't need to use the Clang builtins. The builtins we were using
didn't support vector types, so we were previously scalarizing.

This commit generates the same LLVM fcmp operations as before, just
without the scalarization.
@frasercrmck frasercrmck added the libclc libclc OpenCL library label Jan 27, 2025
@frasercrmck frasercrmck requested a review from arsenm January 27, 2025 12:37
@frasercrmck frasercrmck merged commit 347fb20 into llvm:main Jan 27, 2025
10 checks passed
@frasercrmck frasercrmck deleted the libclc-clc-relational branch January 27, 2025 13:25
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