diff options
author | Craig Topper <craig.topper@intel.com> | 2017-09-21 20:12:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-09-21 20:12:19 +0000 |
commit | de4379251ecbc083104a3796873b24ac677cd162 (patch) | |
tree | ff78133627ab000380a618011c9140f88cbbc684 /lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp | |
parent | 69dbbb0bca7c4eb1bc3e15412393d7d23fffbdd2 (diff) | |
download | bcm5719-llvm-de4379251ecbc083104a3796873b24ac677cd162.tar.gz bcm5719-llvm-de4379251ecbc083104a3796873b24ac677cd162.zip |
[DAGCombiner] Slightly simplify some code by using APInt::isMask() and countTrailingOnes instead of getting active bits and checking if all the bits below that make a mask.
At least for the 64-bit and less case, we should be able to determine if we even have a mask without counting any bits. This also removes the need to explicitly check for 0 active bits, isMask will return false for 0.
llvm-svn: 313908
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp')
0 files changed, 0 insertions, 0 deletions