[all-commits] [llvm/llvm-project] d26791: [Clang][RISCV] Use `__builtin_popcount` in `__risc...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sun Dec 24 00:05:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d26791b09bae4f8bf0f9531957a14864f8696f15
      https://github.com/llvm/llvm-project/commit/d26791b09bae4f8bf0f9531957a14864f8696f15
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2023-12-24 (Sun, 24 Dec 2023)

  Changed paths:
    M clang/lib/Headers/riscv_bitmanip.h
    M clang/test/CodeGen/RISCV/rvb-intrinsics/zbb.c

  Log Message:
  -----------
  [Clang][RISCV] Use `__builtin_popcount` in `__riscv_cpop_32/64` (#76286)

This patch replaces `__builtin_riscv_cpop_32/64` with `__builtin_popcount(ll)` because `__builtin_riscv_cpop_32/64` is not implemented in clang.




More information about the All-commits mailing list