simplify ConstantRange::getSetSize()
authorNuno Lopes <nunoplopes@sapo.pt>
Mon, 28 Oct 2013 16:52:38 +0000 (16:52 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Mon, 28 Oct 2013 16:52:38 +0000 (16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193523 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/ConstantRange.cpp

index bb38cd15e634144b987ba461e94e7c6338445fea..1085a45d0a2df9e2b63e52dcb23542a3854c2999 100644 (file)
@@ -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());