mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
[LCG] Don't lookup the child SCC twice. Spotted this by inspection, and
no functionality changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207750 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b8f462501b
commit
54bf6fd4a5
@ -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…
x
Reference in New Issue
Block a user