mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
APInt: Further simplify APInt::EqualSlowCase as suggested by Duncan
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260910 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -490,10 +490,7 @@ APInt APInt::operator-(const APInt& RHS) const {
|
||||
}
|
||||
|
||||
bool APInt::EqualSlowCase(const APInt& RHS) const {
|
||||
for (unsigned I = 0, NumWords = getNumWords(); I < NumWords; ++I)
|
||||
if (pVal[I] != RHS.pVal[I])
|
||||
return false;
|
||||
return true;
|
||||
return std::equal(pVal, pVal + getNumWords(), RHS.pVal);
|
||||
}
|
||||
|
||||
bool APInt::EqualSlowCase(uint64_t Val) const {
|
||||
|
||||
Reference in New Issue
Block a user