Skip to content

[libclc] Move (add|sub)_sat to CLC; optimize #124903

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 29, 2025

Conversation

frasercrmck
Copy link
Contributor

@frasercrmck frasercrmck commented Jan 29, 2025

Using the __builtin_elementwise_(add|sub)_sat functions allows us to directly optimize to the desired intrinsic, and avoid scalarization for vector types.

Using the __builtin_elementwise_(add|sub)_sat functions allows us to
directly optimize to the desired intrinsic, and avoid scalarization for
vector types.
@frasercrmck frasercrmck added the libclc libclc OpenCL library label Jan 29, 2025
@frasercrmck frasercrmck requested a review from arsenm January 29, 2025 10:51
@frasercrmck frasercrmck merged commit 12cdf43 into llvm:main Jan 29, 2025
10 checks passed
@frasercrmck frasercrmck deleted the libclc-clc-add-sub-sat branch January 29, 2025 11:12
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