summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2021-11-05 14:41:37 +0000
committerDavid Green <david.green@arm.com>2021-11-05 14:41:37 +0000
commit61225c081858efe55dfc7051b338c797fab07cff (patch)
treea0c07cec2d91d002a9c2b56febac22d5ecbbf52c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9e6506299a10884ae20a51d8c91a812a73c16433 (diff)
[ValueTracking][InstCombine] Introduce and use ComputeMinSignedBits
This introduces a new ComputeMinSignedBits method for ValueTracking that returns the BitWidth - SignBits + 1 from ComputeSignBits, and represents the minimum bit size for the value as a signed integer. Similar to the existing APInt::getMinSignedBits method, this can make some of the reasoning around ComputeSignBits more natural. See https://reviews.llvm.org/D112298
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions