diff options
| author | Kazu Hirata <kazu@google.com> | 2023-01-24 23:26:08 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2023-01-24 23:26:08 -0800 |
| commit | 5d3462162e5a977dc0f6dacbcd227f47cfb1d884 (patch) | |
| tree | 71dd896e27ec51ae27591613ad8e6a0c1e95a24a /lldb/test/API/python_api | |
| parent | 7bfdac0e6dd8d9d9a2f8546dedea5d7ffcb5317e (diff) | |
| download | llvm-5d3462162e5a977dc0f6dacbcd227f47cfb1d884.zip llvm-5d3462162e5a977dc0f6dacbcd227f47cfb1d884.tar.gz llvm-5d3462162e5a977dc0f6dacbcd227f47cfb1d884.tar.bz2 | |
[X86] Use llvm::countr_zero instead of findFirstSet (NFC)
At the call site of findFirstSet, ZMask | (1 << DstIdx) always have
exactly 3 bits set, and they are all among the 4 least significant
bits, so (ZMask | (1 << DstIdx)) ^ 15 has exactly one bit set. Since
the argument to findFirstSet is nonzero, we can safely switch to
llvm::countr_zero.
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions
