@@ -1532,7 +1532,7 @@ void CodeGenRegBank::computeComposites() {
15321532 if (CodeGenSubRegIndex *Prev =
15331533 Idx1->addComposite (Idx2, Idx3, getHwModes ())) {
15341534 // If the composition was not user-defined, always emit a warning.
1535- if (!UserDefined.count ({Idx1, Idx2}) ||
1535+ if (!UserDefined.contains ({Idx1, Idx2}) ||
15361536 agree (compose (Idx1, Idx2), SubRegAction.at (Idx3)))
15371537 PrintWarning (Twine (" SubRegIndex " ) + Idx1->getQualifiedName () +
15381538 " and " + Idx2->getQualifiedName () +
@@ -2408,7 +2408,7 @@ void CodeGenRegBank::inferMatchingSuperRegClass(
24082408 if (RC->getSubClassWithSubReg (SubIdx) != RC)
24092409 continue ;
24102410
2411- if (ImpliedSubRegIndices.count (SubIdx))
2411+ if (ImpliedSubRegIndices.contains (SubIdx))
24122412 continue ;
24132413
24142414 // Build list of (Sub, Super) pairs for this SubIdx, sorted by Sub. Note
@@ -2639,13 +2639,13 @@ CodeGenRegBank::computeCoveredRegisters(ArrayRef<const Record *> Regs) {
26392639 // Second, find all super-registers that are completely covered by the set.
26402640 for (unsigned i = 0 ; i != Set.size (); ++i) {
26412641 for (const CodeGenRegister *Super : Set[i]->getSuperRegs ()) {
2642- if (!Super->CoveredBySubRegs || Set.count (Super))
2642+ if (!Super->CoveredBySubRegs || Set.contains (Super))
26432643 continue ;
26442644 // This new super-register is covered by its sub-registers.
26452645 bool AllSubsInSet = true ;
26462646 const CodeGenRegister::SubRegMap &SRM = Super->getSubRegs ();
26472647 for (auto [_, SR] : SRM)
2648- if (!Set.count (SR)) {
2648+ if (!Set.contains (SR)) {
26492649 AllSubsInSet = false ;
26502650 break ;
26512651 }
0 commit comments