mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
[APInt] Implement operator==(uint64_t) similar to ugt/ult(uint64_t) to remove one of the out of line EqualsSlowCase methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -364,14 +364,6 @@ bool APInt::EqualSlowCase(const APInt& RHS) const {
|
||||
return std::equal(pVal, pVal + getNumWords(), RHS.pVal);
|
||||
}
|
||||
|
||||
bool APInt::EqualSlowCase(uint64_t Val) const {
|
||||
unsigned n = getActiveBits();
|
||||
if (n <= APINT_BITS_PER_WORD)
|
||||
return pVal[0] == Val;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
bool APInt::ult(const APInt& RHS) const {
|
||||
assert(BitWidth == RHS.BitWidth && "Bit widths must be same for comparison");
|
||||
if (isSingleWord())
|
||||
|
||||
Reference in New Issue
Block a user