diff options
| author | Noah Goldstein <goldstein.w.n@gmail.com> | 2023-07-21 13:31:47 -0500 |
|---|---|---|
| committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2023-07-21 14:15:06 -0500 |
| commit | 413c119c6a812f91e480c4a67df512e340c41ff3 (patch) | |
| tree | 261d049e28a35d8586d9182375cd5bbe1b3acb5e /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 5ca14d433e0a46023e59f21bfb4b20a674f0d799 (diff) | |
[InstCombine] If there is a known-bit transform is_pow2 check to just check for any other bits
in `ctpop(X) eq/ne 1` or `ctpop(X) ugt/ule 1`, if there is any
known-bit in `X`, instead of going through `ctpop`, we can just test
if there are any other known bits in `X`. If there are, `X` is not a
power of 2. If there aren't, `X` is a power of 2.
https://alive2.llvm.org/ce/z/eLMJgU
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D152677
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
