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:
5295122
)
simplify this method
author
Chris Lattner
<sabre@nondot.org>
Sun, 2 Apr 2006 02:28:52 +0000
(
02:28
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 2 Apr 2006 02:28:52 +0000
(
02:28
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27338
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SelectionDAGNodes.h
b/include/llvm/CodeGen/SelectionDAGNodes.h
index cf5955d63140d4ac6e04082c382d65ecadb873b2..0076a637b2afce9a82e928abbd5f9957cd0c0f76 100644
(file)
--- a/
include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/
include/llvm/CodeGen/SelectionDAGNodes.h
@@
-1076,9
+1076,7
@@
public:
bool isNullValue() const { return Value == 0; }
bool isAllOnesValue() const {
- int NumBits = MVT::getSizeInBits(getValueType(0));
- if (NumBits == 64) return Value+1 == 0;
- return Value == (1ULL << NumBits)-1;
+ return Value == MVT::getIntVTBitMask(getValueType(0));
}
static bool classof(const ConstantSDNode *) { return true; }