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:
Matthias Braun
2016-02-15 20:06:19 +00:00
parent f3164718c6
commit 17946378fd
+1 -4
View File
@@ -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 {