simplify ConstantRange::getSetSize()

llvm-svn: 193523
This commit is contained in:
Nuno Lopes 2013-10-28 16:52:38 +00:00
parent 590fe110f9
commit 8a24152048
1 changed files with 0 additions and 3 deletions

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());