Lines Matching refs:Call

272     Instruction *Call = CS.getInstruction();  in DeleteDeadVarargs()  local
290 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in DeleteDeadVarargs()
292 Args, "", Call); in DeleteDeadVarargs()
296 New = CallInst::Create(NF, Args, "", Call); in DeleteDeadVarargs()
299 if (cast<CallInst>(Call)->isTailCall()) in DeleteDeadVarargs()
302 New->setDebugLoc(Call->getDebugLoc()); in DeleteDeadVarargs()
306 if (!Call->use_empty()) in DeleteDeadVarargs()
307 Call->replaceAllUsesWith(New); in DeleteDeadVarargs()
309 New->takeName(Call); in DeleteDeadVarargs()
313 Call->eraseFromParent(); in DeleteDeadVarargs()
895 Instruction *Call = CS.getInstruction(); in RemoveDeadStuffFromFunction() local
949 AttributesVec.push_back(AttributeSet::get(Call->getContext(), in RemoveDeadStuffFromFunction()
956 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in RemoveDeadStuffFromFunction()
958 Args, "", Call); in RemoveDeadStuffFromFunction()
962 New = CallInst::Create(NF, Args, "", Call); in RemoveDeadStuffFromFunction()
965 if (cast<CallInst>(Call)->isTailCall()) in RemoveDeadStuffFromFunction()
968 New->setDebugLoc(Call->getDebugLoc()); in RemoveDeadStuffFromFunction()
972 if (!Call->use_empty()) { in RemoveDeadStuffFromFunction()
973 if (New->getType() == Call->getType()) { in RemoveDeadStuffFromFunction()
975 Call->replaceAllUsesWith(New); in RemoveDeadStuffFromFunction()
976 New->takeName(Call); in RemoveDeadStuffFromFunction()
980 if (!Call->getType()->isX86_MMXTy()) in RemoveDeadStuffFromFunction()
981 Call->replaceAllUsesWith(Constant::getNullValue(Call->getType())); in RemoveDeadStuffFromFunction()
986 Instruction *InsertPt = Call; in RemoveDeadStuffFromFunction()
987 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) { in RemoveDeadStuffFromFunction()
1015 Call->replaceAllUsesWith(RetVal); in RemoveDeadStuffFromFunction()
1016 New->takeName(Call); in RemoveDeadStuffFromFunction()
1022 Call->eraseFromParent(); in RemoveDeadStuffFromFunction()