Lines Matching refs:DeadFn
32 for (Function *DeadFn : DeadFunctions) { in finalize()
33 DeadFn->removeDeadConstantUsers(); in finalize()
34 CallGraphNode *DeadCGN = (*CG)[DeadFn]; in finalize()
37 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
41 for (Function *DeadFn : DeadFunctions) { in finalize()
42 CallGraphNode *DeadCGN = CG->getOrInsertFunction(DeadFn); in finalize()
50 for (Function *DeadFn : DeadFunctions) { in finalize()
51 DeadFn->removeDeadConstantUsers(); in finalize()
52 DeadFn->replaceAllUsesWith(UndefValue::get(DeadFn->getType())); in finalize()
54 if (LCG && !ReplacedFunctions.count(DeadFn)) { in finalize()
56 LazyCallGraph::Node &N = LCG->get(*DeadFn); in finalize()
59 &DeadSCC->begin()->getFunction() == DeadFn); in finalize()
66 FAM.clear(*DeadFn, DeadFn->getName()); in finalize()
68 LCG->removeDeadFunction(*DeadFn); in finalize()
77 DeadFn->eraseFromParent(); in finalize()
104 void CallGraphUpdater::removeFunction(Function &DeadFn) { in removeFunction() argument
105 DeadFn.deleteBody(); in removeFunction()
106 DeadFn.setLinkage(GlobalValue::ExternalLinkage); in removeFunction()
107 if (DeadFn.hasComdat()) in removeFunction()
108 DeadFunctionsInComdats.push_back(&DeadFn); in removeFunction()
110 DeadFunctions.push_back(&DeadFn); in removeFunction()
113 if (CG && !ReplacedFunctions.count(&DeadFn)) { in removeFunction()
114 CallGraphNode *DeadCGN = (*CG)[&DeadFn]; in removeFunction()