[llvm] r193523 - simplify ConstantRange::getSetSize()

Nuno Lopes nunoplopes at sapo.pt
Mon Oct 28 09:52:39 PDT 2013


Author: nlopes
Date: Mon Oct 28 11:52:38 2013
New Revision: 193523

URL: http://llvm.org/viewvc/llvm-project?rev=193523&view=rev
Log:
simplify ConstantRange::getSetSize()

Modified:
    llvm/trunk/lib/Support/ConstantRange.cpp

Modified: llvm/trunk/lib/Support/ConstantRange.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ConstantRange.cpp?rev=193523&r1=193522&r2=193523&view=diff
==============================================================================
--- llvm/trunk/lib/Support/ConstantRange.cpp (original)
+++ llvm/trunk/lib/Support/ConstantRange.cpp Mon Oct 28 11:52:38 2013
@@ -144,9 +144,6 @@ bool ConstantRange::isSignWrappedSet() c
 /// 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());





More information about the llvm-commits mailing list