@@ -568,7 +568,7 @@ static bool TryRemove(MachineInstr *MI, ReachingDefAnalysis &RDA,
568568 }
569569 if (!ModifiedITs.empty ())
570570 return false ;
571- Killed.insert (RemoveITs. begin (), RemoveITs. end () );
571+ Killed.insert_range (RemoveITs);
572572 return true ;
573573 };
574574
@@ -577,7 +577,7 @@ static bool TryRemove(MachineInstr *MI, ReachingDefAnalysis &RDA,
577577 return false ;
578578
579579 if (WontCorruptITs (Uses, RDA)) {
580- ToRemove.insert (Uses. begin (), Uses. end () );
580+ ToRemove.insert_range (Uses);
581581 LLVM_DEBUG (dbgs () << " ARM Loops: Able to remove: " << *MI
582582 << " - can also remove:\n " ;
583583 for (auto *Use : Uses)
@@ -586,7 +586,7 @@ static bool TryRemove(MachineInstr *MI, ReachingDefAnalysis &RDA,
586586 SmallPtrSet<MachineInstr*, 4 > Killed;
587587 RDA.collectKilledOperands (MI, Killed);
588588 if (WontCorruptITs (Killed, RDA)) {
589- ToRemove.insert (Killed. begin (), Killed. end () );
589+ ToRemove.insert_range (Killed);
590590 LLVM_DEBUG (for (auto *Dead : Killed)
591591 dbgs () << " - " << *Dead);
592592 }
@@ -759,7 +759,7 @@ bool LowOverheadLoop::ValidateTailPredicate() {
759759 SmallPtrSet<MachineInstr*, 2 > Ignore;
760760 unsigned ExpectedVectorWidth = getTailPredVectorWidth (VCTP->getOpcode ());
761761
762- Ignore.insert (VCTPs. begin (), VCTPs. end () );
762+ Ignore.insert_range (VCTPs);
763763
764764 if (TryRemove (Def, RDA, ElementChain, Ignore)) {
765765 bool FoundSub = false ;
@@ -781,7 +781,7 @@ bool LowOverheadLoop::ValidateTailPredicate() {
781781 return false ;
782782 }
783783 }
784- ToRemove.insert (ElementChain. begin (), ElementChain. end () );
784+ ToRemove.insert_range (ElementChain);
785785 }
786786 }
787787
@@ -795,7 +795,7 @@ bool LowOverheadLoop::ValidateTailPredicate() {
795795 if (auto *Def = RDA.getUniqueReachingMIDef (
796796 &Preheader->back (), VCTP->getOperand (1 ).getReg ().asMCReg ())) {
797797 SmallPtrSet<MachineInstr*, 2 > Ignore;
798- Ignore.insert (VCTPs. begin (), VCTPs. end () );
798+ Ignore.insert_range (VCTPs);
799799 TryRemove (Def, RDA, ToRemove, Ignore);
800800 }
801801 }
@@ -1693,7 +1693,7 @@ void ARMLowOverheadLoops::ConvertVPTBlocks(LowOverheadLoop &LoLoop) {
16931693 }
16941694 }
16951695
1696- LoLoop.ToRemove .insert (LoLoop.VCTPs . begin (), LoLoop. VCTPs . end () );
1696+ LoLoop.ToRemove .insert_range (LoLoop.VCTPs );
16971697}
16981698
16991699void ARMLowOverheadLoops::Expand (LowOverheadLoop &LoLoop) {
0 commit comments