Skip to content

[builtins] Use __builtin_clzll for 64-bit types #99874

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
Jul 22, 2024

Conversation

s-barannikov
Copy link
Contributor

@s-barannikov s-barannikov commented Jul 22, 2024

This addresses the issue with __LP64__ not being defined for targets with 32-bit pointers but 64-bit longs, resulting in worse codegen.

Copy link

github-actions bot commented Jul 22, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

This addresses the issue with __LP64__ not being defined for targets
with 32-bit pointers but 64-bit longs, resulting in worse codegen.
@s-barannikov s-barannikov merged commit 735974e into llvm:main Jul 22, 2024
6 checks passed
@s-barannikov s-barannikov deleted the builtins/clzll branch July 22, 2024 18:30
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
This addresses the issue with `__LP64__` not being defined for targets
with 32-bit pointers but 64-bit longs, resulting in worse codegen.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60251560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants