projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
349baa6
)
simplify ConstantRange::getSetSize()
author
Nuno Lopes
<nunoplopes@sapo.pt>
Mon, 28 Oct 2013 16:52:38 +0000
(16:52 +0000)
committer
Nuno 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
patch
|
blob
|
history
diff --git
a/lib/Support/ConstantRange.cpp
b/lib/Support/ConstantRange.cpp
index bb38cd15e634144b987ba461e94e7c6338445fea..1085a45d0a2df9e2b63e52dcb23542a3854c2999 100644
(file)
--- 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());