1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

TblGen: Remove copy of SmallVector::operator==. NFC intended.

llvm-svn: 230964
This commit is contained in:
Benjamin Kramer 2015-03-02 15:24:30 +00:00
parent e4a06dd254
commit c2a218b9bd
2 changed files with 3 additions and 12 deletions

View File

@ -42,10 +42,10 @@ namespace llvm {
struct MaskRolPair {
unsigned Mask;
uint8_t RotateLeft;
bool operator==(const MaskRolPair Other) {
bool operator==(const MaskRolPair Other) const {
return Mask == Other.Mask && RotateLeft == Other.RotateLeft;
}
bool operator!=(const MaskRolPair Other) {
bool operator!=(const MaskRolPair Other) const {
return Mask != Other.Mask || RotateLeft != Other.RotateLeft;
}
};

View File

@ -716,16 +716,7 @@ RegisterInfoEmitter::emitComposeSubRegIndexLaneMask(raw_ostream &OS,
for (size_t s = 0, se = Sequences.size(); s != se; ++s, SIdx = NextSIdx) {
SmallVectorImpl<MaskRolPair> &Sequence = Sequences[s];
NextSIdx = SIdx + Sequence.size() + 1;
if (Sequence.size() != IdxSequence.size())
continue;
bool Identical = true;
for (size_t o = 0, oe = Sequence.size(); o != oe; ++o) {
if (Sequence[o] != IdxSequence[o]) {
Identical = false;
break;
}
}
if (Identical) {
if (Sequence == IdxSequence) {
Found = SIdx;
break;
}