[all-commits] [llvm/llvm-project] a5cd20: Use llvm::Log2_32 and llvm::Log2_64 instead of llv...
kazutakahirata via All-commits
all-commits at lists.llvm.org
Wed Jan 25 21:34:23 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a5cd202e21e52c1e00963ad5bdfeb83b4fec820e
https://github.com/llvm/llvm-project/commit/a5cd202e21e52c1e00963ad5bdfeb83b4fec820e
Author: Kazu Hirata <kazu at google.com>
Date: 2023-01-25 (Wed, 25 Jan 2023)
Changed paths:
M clang-tools-extra/clangd/index/dex/PostingList.cpp
M clang/lib/CodeGen/SwiftCallingConv.cpp
M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
M llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Log Message:
-----------
Use llvm::Log2_32 and llvm::Log2_64 instead of llvm::findLastSet (NFC)
For a nonzero argument, llvm::findLastSet(x) is equivalent to
llvm::Log2_32(x) or llvm::Log2_64(x). None of the calls to
llvm::findLastSet in this patch relies on llvm::findLastSet's ability
to return std::numeric_limits<T>::max() on input 0.
More information about the All-commits
mailing list