mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-21 18:46:51 +00:00
[BOLT] Use *Set::insert_range (NFC) (#133601)
This commit is contained in:
parent
e8059467ef
commit
0c7be9392f
bolt
@ -54,7 +54,7 @@ public:
|
||||
HasNonDominatedPred = true;
|
||||
});
|
||||
if (HasDominatedPred && HasNonDominatedPred)
|
||||
Result.insert(Candidates.begin(), Candidates.end());
|
||||
Result.insert_range(Candidates);
|
||||
if ((*this->getStateAt(ProgramPoint::getLastPointAt(BB)))[DomIdx] &&
|
||||
BB.succ_begin() == BB.succ_end())
|
||||
Result.insert(ProgramPoint::getLastPointAt(BB));
|
||||
|
@ -1997,7 +1997,7 @@ void BinaryFunction::postProcessJumpTables() {
|
||||
bool BinaryFunction::validateExternallyReferencedOffsets() {
|
||||
SmallPtrSet<MCSymbol *, 4> JTTargets;
|
||||
for (const JumpTable *JT : llvm::make_second_range(JumpTables))
|
||||
JTTargets.insert(JT->Entries.begin(), JT->Entries.end());
|
||||
JTTargets.insert_range(JT->Entries);
|
||||
|
||||
bool HasUnclaimedReference = false;
|
||||
for (uint64_t Destination : ExternallyReferencedOffsets) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user