Skip to content

[orc-rt] Simplify bit.h countl_zero and bit_width - #225547

Merged
lhames merged 1 commit into
llvm:mainfrom
lhames:orc-rt-bit-h-simplification
Sep 23, 2026
Merged

lhames merged 1 commit into
llvm:mainfrom
lhames:orc-rt-bit-h-simplification

Conversation

@lhames

@lhames lhames commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

The old countl_zero algorithm wasn't recognized / optimized by clang on arm64 or x86-64. Switch to a simpler loop that clang recognizes and rewrite bit_width in terms of countl_zero. NFCI.

The old countl_zero algorithm wasn't recognized / optimized by clang on
arm64 or x86-64. Switch to a simpler loop that clang recognizes and
rewrite bit_width in terms of countl_zero. NFCI.
@lhames
lhames merged commit c2b3813 into llvm:main Sep 23, 2026
12 checks passed
@lhames
lhames deleted the orc-rt-bit-h-simplification branch September 23, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant