[SVE] Remove TypeSize comparison operators

All known instances in the code where we relied upon the TypeSize
comparison operators have now been changed to either use scalar
interger comparisons or one of the TypeSize::isKnownXY functions.
It is now safe to remove the comparison operators.

Differential Revision: https://reviews.llvm.org/D90160
This commit is contained in:
David Sherwood 2020-10-26 15:12:58 +00:00
parent 58a6b7bcde
commit 8c058dd2d7
1 changed files with 0 additions and 19 deletions

View File

@ -206,25 +206,6 @@ public:
uint64_t getFixedSize() const { return getFixedValue(); }
uint64_t getKnownMinSize() const { return getKnownMinValue(); }
friend bool operator<(const TypeSize &LHS, const TypeSize &RHS) {
assert(LHS.IsScalable == RHS.IsScalable &&
"Ordering comparison of scalable and fixed types");
return LHS.MinVal < RHS.MinVal;
}
friend bool operator>(const TypeSize &LHS, const TypeSize &RHS) {
return RHS < LHS;
}
friend bool operator<=(const TypeSize &LHS, const TypeSize &RHS) {
return !(RHS < LHS);
}
friend bool operator>=(const TypeSize &LHS, const TypeSize& RHS) {
return !(LHS < RHS);
}
TypeSize &operator-=(TypeSize RHS) {
assert(IsScalable == RHS.IsScalable &&
"Subtraction using mixed scalable and fixed types");