• Home
  • Raw
  • Download

Lines Matching refs:Call

228     Instruction *Call = CS.getInstruction();  in DeleteDeadVarargs()  local
245 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in DeleteDeadVarargs()
247 Args, "", Call); in DeleteDeadVarargs()
251 New = CallInst::Create(NF, Args, "", Call); in DeleteDeadVarargs()
254 if (cast<CallInst>(Call)->isTailCall()) in DeleteDeadVarargs()
257 New->setDebugLoc(Call->getDebugLoc()); in DeleteDeadVarargs()
261 if (!Call->use_empty()) in DeleteDeadVarargs()
262 Call->replaceAllUsesWith(New); in DeleteDeadVarargs()
264 New->takeName(Call); in DeleteDeadVarargs()
268 Call->eraseFromParent(); in DeleteDeadVarargs()
781 Instruction *Call = CS.getInstruction(); in RemoveDeadStuffFromFunction() local
823 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in RemoveDeadStuffFromFunction()
825 Args, "", Call); in RemoveDeadStuffFromFunction()
829 New = CallInst::Create(NF, Args, "", Call); in RemoveDeadStuffFromFunction()
832 if (cast<CallInst>(Call)->isTailCall()) in RemoveDeadStuffFromFunction()
835 New->setDebugLoc(Call->getDebugLoc()); in RemoveDeadStuffFromFunction()
839 if (!Call->use_empty()) { in RemoveDeadStuffFromFunction()
840 if (New->getType() == Call->getType()) { in RemoveDeadStuffFromFunction()
842 Call->replaceAllUsesWith(New); in RemoveDeadStuffFromFunction()
843 New->takeName(Call); in RemoveDeadStuffFromFunction()
847 if (!Call->getType()->isX86_MMXTy()) in RemoveDeadStuffFromFunction()
848 Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); in RemoveDeadStuffFromFunction()
853 Instruction *InsertPt = Call; in RemoveDeadStuffFromFunction()
854 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in RemoveDeadStuffFromFunction()
882 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
883 New->takeName(Call); in RemoveDeadStuffFromFunction()
889 Call->eraseFromParent(); in RemoveDeadStuffFromFunction()