File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1420,16 +1420,8 @@ void IRSimilarityIdentifier::findCandidates(
1420
1420
// IRSimilarityCandidates that include that instruction.
1421
1421
for (IRSimilarityCandidate &IRCand : SimilarityCandidates->back ()) {
1422
1422
for (unsigned Idx = IRCand.getStartIdx (), Edx = IRCand.getEndIdx ();
1423
- Idx <= Edx; ++Idx) {
1424
- DenseMap<unsigned , DenseSet<IRSimilarityCandidate *>>::iterator
1425
- IdIt;
1426
- IdIt = IndexToIncludedCand.find (Idx);
1427
- bool Inserted = false ;
1428
- if (IdIt == IndexToIncludedCand.end ())
1429
- std::tie (IdIt, Inserted) = IndexToIncludedCand.insert (
1430
- std::make_pair (Idx, DenseSet<IRSimilarityCandidate *>()));
1431
- IdIt->second .insert (&IRCand);
1432
- }
1423
+ Idx <= Edx; ++Idx)
1424
+ IndexToIncludedCand[Idx].insert (&IRCand);
1433
1425
// Add mapping of candidate to the overall similarity group number.
1434
1426
CandToGroup.insert (
1435
1427
std::make_pair (&IRCand, SimilarityCandidates->size () - 1 ));
You can’t perform that action at this time.
0 commit comments