[KnownBits] Add bit counting methods to KnownBits struct and use them where…

Description

[KnownBits] Add bit counting methods to KnownBits struct and use them where possible

This patch adds min/max population count, leading/trailing zero/one bit counting methods.

The min methods return answers based on bits that are known without considering unknown bits. The max methods give answers taking into account the largest count that unknown bits could give.

Differential Revision: https://reviews.llvm.org/D32931

Details

Committed
ctopperMay 12 2017, 10:20 AM
Differential Revision
D32931: [KnownBits] Add bit counting methods to KnownBits struct and use them where possible
Parents
rL302924: [ubsan] Enable debug info in test binaries
Branches
Unknown
Tags
Unknown