diff options
author | Fangrui Song <maskray@google.com> | 2019-04-14 04:45:04 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-14 04:45:04 +0000 |
commit | 43d110bd27af02b6cb9af264b1d204ce43cb7b95 (patch) | |
tree | 395925308f8145fd39902419a3f34c6e82202278 /llvm/lib/IR/ConstantRange.cpp | |
parent | 476dd06854e866f7255b3b17fe37f0226e9dd8ac (diff) | |
download | bcm5719-llvm-43d110bd27af02b6cb9af264b1d204ce43cb7b95.tar.gz bcm5719-llvm-43d110bd27af02b6cb9af264b1d204ce43cb7b95.zip |
[ConstantRange] Delete unused getSetSize
getSetSize returns an APInt that is 1 bit wider. The APInt is typically 65-bit and requires memory allocation. isSizeStrictlySmallerThan and isSizeLargerThan are preferred. The last use of this helper method was removed by rL302385.
llvm-svn: 358347
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantRange.cpp | 8 |
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()); |