mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
simplify ConstantRange::getSetSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193523 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
349baa6039
commit
790b973f80
@ -144,9 +144,6 @@ bool ConstantRange::isSignWrappedSet() const {
|
||||
/// getSetSize - Return the number of elements in this set.
|
||||
///
|
||||
APInt ConstantRange::getSetSize() const {
|
||||
if (isEmptySet())
|
||||
return APInt(getBitWidth()+1, 0);
|
||||
|
||||
if (isFullSet()) {
|
||||
APInt Size(getBitWidth()+1, 0);
|
||||
Size.setBit(getBitWidth());
|
||||
|
Loading…
Reference in New Issue
Block a user