Lines Matching refs:CGN
580 auto RemoveCGN = [&](CallGraphNode *CGN) { in removeDeadFunctions() argument
582 CGN->removeAllCalledFunctions(); in removeDeadFunctions()
587 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN); in removeDeadFunctions()
590 FunctionsToRemove.push_back(CGN); in removeDeadFunctions()
596 CallGraphNode *CGN = I.second.get(); in removeDeadFunctions() local
597 Function *F = CGN->getFunction(); in removeDeadFunctions()
621 DeadFunctionsInComdats.push_back(CGN); in removeDeadFunctions()
626 RemoveCGN(CGN); in removeDeadFunctions()
644 for (CallGraphNode *CGN : DeadFunctionsInComdats) { in removeDeadFunctions()
645 Function *F = CGN->getFunction(); in removeDeadFunctions()
653 RemoveCGN(CGN); in removeDeadFunctions()
671 for (CallGraphNode *CGN : FunctionsToRemove) { in removeDeadFunctions()
672 delete CG.removeFunctionFromModule(CGN); in removeDeadFunctions()