mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[APInt] Use UINT64_MAX instead of ~integerPart(0). NFC
llvm-svn: 296322
This commit is contained in:
parent
8f6c9e9564
commit
67aa87241c
@ -341,7 +341,7 @@ public:
|
||||
/// This checks to see if the value has all bits of the APInt are set or not.
|
||||
bool isAllOnesValue() const {
|
||||
if (isSingleWord())
|
||||
return VAL == ~integerPart(0) >> (APINT_BITS_PER_WORD - BitWidth);
|
||||
return VAL == UINT64_MAX >> (APINT_BITS_PER_WORD - BitWidth);
|
||||
return countPopulationSlowCase() == BitWidth;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user