[LCG] Don't lookup the child SCC twice. Spotted this by inspection, and
no functionality changed. llvm-svn: 207750
This commit is contained in:
parent
4b096741b4
commit
034d0d6805
|
@ -463,9 +463,9 @@ LazyCallGraph::SCC *LazyCallGraph::formSCC(Node *RootN,
|
|||
bool IsLeafSCC = true;
|
||||
for (Node *SCCN : NewSCC->Nodes)
|
||||
for (Node &SCCChildN : *SCCN) {
|
||||
if (SCCMap.lookup(&SCCChildN) == NewSCC)
|
||||
continue;
|
||||
SCC &ChildSCC = *SCCMap.lookup(&SCCChildN);
|
||||
if (&ChildSCC == NewSCC)
|
||||
continue;
|
||||
ChildSCC.ParentSCCs.insert(NewSCC);
|
||||
IsLeafSCC = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue