mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
TblGen: Remove copy of SmallVector::operator==. NFC intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230964 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,10 +42,10 @@ namespace llvm {
|
|||||||
struct MaskRolPair {
|
struct MaskRolPair {
|
||||||
unsigned Mask;
|
unsigned Mask;
|
||||||
uint8_t RotateLeft;
|
uint8_t RotateLeft;
|
||||||
bool operator==(const MaskRolPair Other) {
|
bool operator==(const MaskRolPair Other) const {
|
||||||
return Mask == Other.Mask && RotateLeft == Other.RotateLeft;
|
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;
|
return Mask != Other.Mask || RotateLeft != Other.RotateLeft;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -716,16 +716,7 @@ RegisterInfoEmitter::emitComposeSubRegIndexLaneMask(raw_ostream &OS,
|
|||||||
for (size_t s = 0, se = Sequences.size(); s != se; ++s, SIdx = NextSIdx) {
|
for (size_t s = 0, se = Sequences.size(); s != se; ++s, SIdx = NextSIdx) {
|
||||||
SmallVectorImpl<MaskRolPair> &Sequence = Sequences[s];
|
SmallVectorImpl<MaskRolPair> &Sequence = Sequences[s];
|
||||||
NextSIdx = SIdx + Sequence.size() + 1;
|
NextSIdx = SIdx + Sequence.size() + 1;
|
||||||
if (Sequence.size() != IdxSequence.size())
|
if (Sequence == IdxSequence) {
|
||||||
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) {
|
|
||||||
Found = SIdx;
|
Found = SIdx;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user