diff options
author | Kazu Hirata <kazu@google.com> | 2023-01-22 12:48:51 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-01-22 12:48:51 -0800 |
commit | caa99a01f5dd2f865df318a2f93abc811273a25d (patch) | |
tree | 1c848ea5a64f404c933aec6b396eed33a43bf885 /llvm/lib/Support/APInt.cpp | |
parent | 0b5cb41dd07cc7cde9330d6098ebd74387f3df7f (diff) | |
download | llvm-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.cpp | 2 |
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; } |