We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b189ca commit 2fa59b3Copy full SHA for 2fa59b3
llvm/lib/Analysis/IRSimilarityIdentifier.cpp
@@ -728,11 +728,10 @@ bool IRSimilarityCandidate::compareAssignmentMapping(
728
for (unsigned OtherVal : ValueMappingIt->second) {
729
if (OtherVal == InstValB)
730
continue;
731
- if (!ValueNumberMappingA.contains(OtherVal))
+ auto OtherValIt = ValueNumberMappingA.find(OtherVal);
732
+ if (OtherValIt == ValueNumberMappingA.end())
733
- if (!ValueNumberMappingA[OtherVal].contains(InstValA))
734
- continue;
735
- ValueNumberMappingA[OtherVal].erase(InstValA);
+ OtherValIt->second.erase(InstValA);
736
}
737
ValueNumberMappingA.erase(ValueMappingIt);
738
std::tie(ValueMappingIt, WasInserted) = ValueNumberMappingA.insert(
0 commit comments