summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/timeout/wait-a-while.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-06-23 14:22:37 +0000
committerSanjay Patel <spatel@rotateright.com>2019-06-23 14:22:37 +0000
commit13a5ae58fcf1386256e56d2dc67c783628c3e0f1 (patch)
treeaf126314af5e3b97bab176e2378b26770a004d20 /lldb/packages/Python/lldbsuite/test/expression_command/timeout/wait-a-while.cpp
parent6620e3b2f6937c6b862407043aa49a1efb6f19df (diff)
downloadbcm5719-llvm-13a5ae58fcf1386256e56d2dc67c783628c3e0f1.tar.gz
bcm5719-llvm-13a5ae58fcf1386256e56d2dc67c783628c3e0f1.zip
[InstCombine] squash is-power-of-2 that uses ctpop
This is another intermediate IR step towards solving PR42314: https://bugs.llvm.org/show_bug.cgi?id=42314 We can test if a value is power-of-2-or-0 using ctpop(X) < 2, so combining that with a non-zero check of the input is the same as testing if exactly 1 bit is set: (X != 0) && (ctpop(X) u< 2) --> ctpop(X) == 1 Differential Revision: https://reviews.llvm.org/D63660 llvm-svn: 364153
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/timeout/wait-a-while.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud