Lines Matching refs:CG
52 static bool SimplifyFunction(Function *F, CallGraph &CG);
53 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG);
64 static bool runImpl(CallGraphSCC &SCC, CallGraph &CG) { in runImpl() argument
77 MadeChange |= SimplifyFunction(F, CG); in runImpl()
132 CallGraphNode *CalleeNode = CG[Callee]; in runImpl()
175 MadeChange |= SimplifyFunction(F, CG); in runImpl()
185 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() local
186 return runImpl(SCC, CG); in runOnSCC()
193 static bool SimplifyFunction(Function *F, CallGraph &CG) { in SimplifyFunction() argument
203 DeleteBasicBlock(UnwindBlock, CG); // Delete the new BB. in SimplifyFunction()
222 DeleteBasicBlock(New, CG); // Delete the new BB. in SimplifyFunction()
235 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG) { in DeleteBasicBlock() argument
240 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()