mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
fix this method for 64-bit constants
llvm-svn: 21158
This commit is contained in:
parent
3fca499b8d
commit
6c466448d3
@ -605,7 +605,9 @@ public:
|
||||
|
||||
bool isNullValue() const { return Value == 0; }
|
||||
bool isAllOnesValue() const {
|
||||
return Value == (1ULL << MVT::getSizeInBits(getValueType(0)))-1;
|
||||
int NumBits = MVT::getSizeInBits(getValueType(0));
|
||||
if (NumBits == 64) return Value+1 == 0;
|
||||
return Value == (1ULL << NumBits)-1;
|
||||
}
|
||||
|
||||
static bool classof(const ConstantSDNode *) { return true; }
|
||||
|
Loading…
Reference in New Issue
Block a user