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 /llvm/lib/Analysis/ValueTracking.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 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 59bd6d0..0e116b7 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -1376,7 +1376,7 @@ static void computeKnownBitsFromOperator(const Operator *I, if (IndexTypeSize.isScalable()) { // For scalable types the only thing we know about sizeof is // that this is a multiple of the minimum size. - ScalingFactor.Zero.setLowBits(countTrailingZeros(TypeSizeInBytes)); + ScalingFactor.Zero.setLowBits(llvm::countr_zero(TypeSizeInBytes)); } else if (IndexBits.isConstant()) { APInt IndexConst = IndexBits.getConstant(); APInt ScalingFactor(IndexBitWidth, TypeSizeInBytes); |