diff options
| author | Kazu Hirata <kazu@google.com> | 2023-01-28 12:41:19 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2023-01-28 12:41:20 -0800 |
| commit | 55e2cd16095d64e9afca6e109e40ed95d735dc7f (patch) | |
| tree | c61699df07a76b98d99ed93dfb95d0e003b0956a /mlir/lib/Bytecode/Reader/BytecodeReader.cpp | |
| parent | a536d3e40e088ab725c6d2e6c0b8ca21451b511c (diff) | |
| download | llvm-55e2cd16095d64e9afca6e109e40ed95d735dc7f.zip llvm-55e2cd16095d64e9afca6e109e40ed95d735dc7f.tar.gz llvm-55e2cd16095d64e9afca6e109e40ed95d735dc7f.tar.bz2 | |
Use llvm::count{lr}_{zero,one} (NFC)
Diffstat (limited to 'mlir/lib/Bytecode/Reader/BytecodeReader.cpp')
| -rw-r--r-- | mlir/lib/Bytecode/Reader/BytecodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp index 53e5547..4a09cb7 100644 --- a/mlir/lib/Bytecode/Reader/BytecodeReader.cpp +++ b/mlir/lib/Bytecode/Reader/BytecodeReader.cpp @@ -281,7 +281,7 @@ private: // here because we only care about the first byte, and so that be actually // get ctz intrinsic calls when possible (the `uint8_t` overload uses a loop // implementation). - uint32_t numBytes = llvm::countTrailingZeros<uint32_t>(result); + uint32_t numBytes = llvm::countr_zero<uint32_t>(result); assert(numBytes > 0 && numBytes <= 7 && "unexpected number of trailing zeros in varint encoding"); |
