diff options
author | Kazu Hirata <kazu@google.com> | 2023-02-19 11:29:12 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-02-19 11:29:12 -0800 |
commit | cbde2124f153f8fd084e8ff1221c0357442ea707 (patch) | |
tree | 06becbe263ad3b80a065b8ca75ccd7fb83a2d087 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 179a24c2f149933868e2a69b94200d7f4dcf18c5 (diff) | |
download | llvm-cbde2124f153f8fd084e8ff1221c0357442ea707.zip llvm-cbde2124f153f8fd084e8ff1221c0357442ea707.tar.gz llvm-cbde2124f153f8fd084e8ff1221c0357442ea707.tar.bz2 |
Use APInt::popcount instead of APInt::countPopulation (NFC)
This is for consistency with the C++20-style bit manipulation
functions in <bit>.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index ddef654..2ca25ef 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -3152,7 +3152,7 @@ collectBitParts(Value *V, bool MatchBSwaps, bool MatchBitReversals, // Check that the mask allows a multiple of 8 bits for a bswap, for an // early exit. - unsigned NumMaskedBits = AndMask.countPopulation(); + unsigned NumMaskedBits = AndMask.popcount(); if (!MatchBitReversals && (NumMaskedBits % 8) != 0) return Result; |