Skip to content

[libclc] Enable clang fp reciprocal in clc_native_divide/recip/rsqrt/tan #149269

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 2 commits into from
Jul 17, 2025

Conversation

wenju-he
Copy link
Contributor

The pragma adds arcp flag to fdiv instruction in these functions. The flag can provide better performance.

…t/tan

The pragma adds `arcp` flag to `fdiv` instruction in these functions.
The flag can provide better performance.
@wenju-he wenju-he requested a review from frasercrmck July 17, 2025 08:04
@arsenm arsenm added the libclc libclc OpenCL library label Jul 17, 2025
Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenju-he wenju-he merged commit cf36f49 into llvm:main Jul 17, 2025
10 checks passed
@wenju-he wenju-he deleted the libclc-native-fp-reciprocal-on branch July 17, 2025 23:54
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.

3 participants