mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
GVN's Expression is not POD-like (it contains a SmallVector). Simplify code while at it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122362 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0cf2585a0
commit
aad94aa437
@ -127,16 +127,9 @@ namespace {
|
||||
return false;
|
||||
else if (function != other.function)
|
||||
return false;
|
||||
else {
|
||||
if (varargs.size() != other.varargs.size())
|
||||
return false;
|
||||
|
||||
for (size_t i = 0; i < varargs.size(); ++i)
|
||||
if (varargs[i] != other.varargs[i])
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (varargs != other.varargs)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/*bool operator!=(const Expression &other) const {
|
||||
@ -214,9 +207,6 @@ template <> struct DenseMapInfo<Expression> {
|
||||
return LHS == RHS;
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct isPodLike<Expression> { static const bool value = true; };
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user