summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/ConstantRange.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/ConstantRange.cpp b/llvm/lib/IR/ConstantRange.cpp
index 40934d97286..87b66fa821c 100644
--- a/llvm/lib/IR/ConstantRange.cpp
+++ b/llvm/lib/IR/ConstantRange.cpp
@@ -349,14 +349,6 @@ bool ConstantRange::isUpperSignWrapped() const {
return Lower.sgt(Upper);
}
-APInt ConstantRange::getSetSize() const {
- if (isFullSet())
- return APInt::getOneBitSet(getBitWidth()+1, getBitWidth());
-
- // This is also correct for wrapped sets.
- return (Upper - Lower).zext(getBitWidth()+1);
-}
-
bool
ConstantRange::isSizeStrictlySmallerThan(const ConstantRange &Other) const {
assert(getBitWidth() == Other.getBitWidth());
OpenPOWER on IntegriCloud