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:
Nuno Lopes 2013-10-28 16:52:38 +00:00
parent 349baa6039
commit 790b973f80

View File

@ -144,9 +144,6 @@ bool ConstantRange::isSignWrappedSet() const {
/// getSetSize - Return the number of elements in this set. /// getSetSize - Return the number of elements in this set.
/// ///
APInt ConstantRange::getSetSize() const { APInt ConstantRange::getSetSize() const {
if (isEmptySet())
return APInt(getBitWidth()+1, 0);
if (isFullSet()) { if (isFullSet()) {
APInt Size(getBitWidth()+1, 0); APInt Size(getBitWidth()+1, 0);
Size.setBit(getBitWidth()); Size.setBit(getBitWidth());