aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-01-22 12:48:51 -0800
committerKazu Hirata <kazu@google.com>2023-01-22 12:48:51 -0800
commitcaa99a01f5dd2f865df318a2f93abc811273a25d (patch)
tree1c848ea5a64f404c933aec6b396eed33a43bf885 /llvm/lib/Support/APInt.cpp
parent0b5cb41dd07cc7cde9330d6098ebd74387f3df7f (diff)
downloadllvm-caa99a01f5dd2f865df318a2f93abc811273a25d.zip
llvm-caa99a01f5dd2f865df318a2f93abc811273a25d.tar.gz
llvm-caa99a01f5dd2f865df318a2f93abc811273a25d.tar.bz2
Use llvm::popcount instead of llvm::countPopulation(NFC)
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 1a2129a..afe7478 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -684,7 +684,7 @@ unsigned APInt::countTrailingOnesSlowCase() const {
unsigned APInt::countPopulationSlowCase() const {
unsigned Count = 0;
for (unsigned i = 0; i < getNumWords(); ++i)
- Count += llvm::countPopulation(U.pVal[i]);
+ Count += llvm::popcount(U.pVal[i]);
return Count;
}