mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
simplify this method
llvm-svn: 27338
This commit is contained in:
parent
2a24d68439
commit
99a3213376
@ -1076,9 +1076,7 @@ public:
|
|||||||
|
|
||||||
bool isNullValue() const { return Value == 0; }
|
bool isNullValue() const { return Value == 0; }
|
||||||
bool isAllOnesValue() const {
|
bool isAllOnesValue() const {
|
||||||
int NumBits = MVT::getSizeInBits(getValueType(0));
|
return Value == MVT::getIntVTBitMask(getValueType(0));
|
||||||
if (NumBits == 64) return Value+1 == 0;
|
|
||||||
return Value == (1ULL << NumBits)-1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool classof(const ConstantSDNode *) { return true; }
|
static bool classof(const ConstantSDNode *) { return true; }
|
||||||
|
Loading…
Reference in New Issue
Block a user