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/CodeGen/CodeGenPrepare.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/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index f696255..dd431cc 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2603,7 +2603,7 @@ struct ExtAddrMode : public TargetLowering::AddrMode { if (Scale && other.Scale && Scale != other.Scale) Result |= ScaleField; - if (countPopulation(Result) > 1) + if (llvm::popcount(Result) > 1) return MultipleFields; else return static_cast<FieldName>(Result); |