Lines Matching refs:NewInst
111 static void createRetPHINode(Instruction *OrigInst, Instruction *NewInst, in createRetPHINode() argument
123 Phi->addIncoming(NewInst, NewInst->getParent()); in createRetPHINode()
299 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSiteWithCond() local
300 NewInst->insertBefore(ThenTerm); in versionCallSiteWithCond()
303 Value *NewRetVal = NewInst; in versionCallSiteWithCond()
309 NewBitCast->replaceUsesOfWith(OrigInst, NewInst); in versionCallSiteWithCond()
327 return *NewInst; in versionCallSiteWithCond()
344 CallBase *NewInst = cast<CallBase>(OrigInst->clone()); in versionCallSiteWithCond() local
346 NewInst->insertBefore(ThenTerm); in versionCallSiteWithCond()
352 auto *NewInvoke = cast<InvokeInst>(NewInst); in versionCallSiteWithCond()
374 createRetPHINode(OrigInst, NewInst, MergeBlock, Builder); in versionCallSiteWithCond()
376 return *NewInst; in versionCallSiteWithCond()
569 CallBase &NewInst = versionCallSite(CB, Callee, BranchWeights); in promoteCallWithIfThenElse() local
572 return promoteCall(NewInst, Callee); in promoteCallWithIfThenElse()
590 CallBase &NewInst = versionCallSiteWithCond(CB, Cond, BranchWeights); in promoteCallWithVTableCmp() local
593 return promoteCall(NewInst, Callee); in promoteCallWithVTableCmp()