Lines Matching refs:CG
377 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in inlineCalls() local
379 PSI = getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(CG.getModule()); in inlineCalls()
440 InlineFunctionInfo InlineInfo(&CG, ACT); in inlineCalls()
465 CG[Caller]->removeCallEdgeFor(CS); in inlineCalls()
535 CG[Callee]->getNumReferences() == 0) { in inlineCalls()
538 CallGraphNode *CalleeNode = CG[Callee]; in inlineCalls()
544 delete CG.removeFunctionFromModule(CalleeNode); in inlineCalls()
570 bool Inliner::doFinalization(CallGraph &CG) { in doFinalization() argument
571 return removeDeadFunctions(CG); in doFinalization()
575 bool Inliner::removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly) { in removeDeadFunctions() argument
587 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN); in removeDeadFunctions()
595 for (const auto &I : CG) { in removeDeadFunctions()
635 for (const Function &F : CG.getModule()) in removeDeadFunctions()
638 for (const GlobalVariable &GV : CG.getModule().globals()) in removeDeadFunctions()
641 for (const GlobalAlias &GA : CG.getModule().aliases()) in removeDeadFunctions()
672 delete CG.removeFunctionFromModule(CGN); in removeDeadFunctions()