summaryrefslogtreecommitdiff
path: root/lib/Support/ConstantRange.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2013-10-28 16:52:38 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2013-10-28 16:52:38 +0000
commit790b973f80c8fd41f0908536409538336242f74d (patch)
tree87021f4e3a6b605f98ea8a91494deca35addac59 /lib/Support/ConstantRange.cpp
parent349baa60393c637f479ee31b25c65555b095a2ef (diff)
downloadllvm-790b973f80c8fd41f0908536409538336242f74d.tar.gz
llvm-790b973f80c8fd41f0908536409538336242f74d.tar.bz2
llvm-790b973f80c8fd41f0908536409538336242f74d.tar.xz
simplify ConstantRange::getSetSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/ConstantRange.cpp')
-rw-r--r--lib/Support/ConstantRange.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Support/ConstantRange.cpp b/lib/Support/ConstantRange.cpp
index bb38cd15e6..1085a45d0a 100644
--- a/lib/Support/ConstantRange.cpp
+++ b/lib/Support/ConstantRange.cpp
@@ -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());