[all-commits] [llvm/llvm-project] c2b381: [orc-rt] Simplify bit.h countl_zero and bit_width ...

Lang Hames via All-commits all-commits at lists.llvm.org
Tue Sep 22 17:45:13 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2b3813133870406f2e4e7c8110e29a065732d9a
      https://github.com/llvm/llvm-project/commit/c2b3813133870406f2e4e7c8110e29a065732d9a
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M orc-rt/include/orc-rt/support/bit.h

  Log Message:
  -----------
  [orc-rt] Simplify bit.h countl_zero and bit_width (#225547)

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.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list